From 7abc961e4a602675e100c5419dd1d834b5aa0013 Mon Sep 17 00:00:00 2001 From: Erik Hetzner Date: Wed, 27 May 2026 11:42:03 -0700 Subject: [PATCH 1/5] checkout xslt tests in pretest --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index c15ed48..157298e 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "scripts": { "build": "tsc && chmod +x dist/cli.js", "build-preprocessors": "npm run build && rm src/preprocess/*js && bash -c \"for n in src/preprocess/*xsl ; do xjslt compile --standalone \\$n \\${n/xsl/js} ; done\" && prettier -w src/preprocess/ && npm run build", + "pretest": "if [ -d xslt30-test ] ; then cd xslt30-test && git pull && cd .. ; else git clone --depth 1 https://github.com/w3c/xslt30-test/ ; fi", "test": "jest --coverage --verbose", "check": "jest && prettier -c src/ test/", "prepare": "tsc && chmod +x dist/cli.js" From 4d03799c5d95c0402b74531764b30a3262a185e1 Mon Sep 17 00:00:00 2001 From: Erik Hetzner Date: Wed, 27 May 2026 13:57:30 -0700 Subject: [PATCH 2/5] fix build-preprocessors step --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 157298e..c910071 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ }, "scripts": { "build": "tsc && chmod +x dist/cli.js", - "build-preprocessors": "npm run build && rm src/preprocess/*js && bash -c \"for n in src/preprocess/*xsl ; do xjslt compile --standalone \\$n \\${n/xsl/js} ; done\" && prettier -w src/preprocess/ && npm run build", + "build-preprocessors": "npm run build && rm src/preprocess/*js && bash -c \"for n in src/preprocess/*xsl ; do npm exec xjslt compile --standalone \\$n \\${n/xsl/js} ; done\" && prettier -w src/preprocess/ && npm run build", "pretest": "if [ -d xslt30-test ] ; then cd xslt30-test && git pull && cd .. ; else git clone --depth 1 https://github.com/w3c/xslt30-test/ ; fi", "test": "jest --coverage --verbose", "check": "jest && prettier -c src/ test/", From 5e2fc042e15000771686ee72cd531eedaa3974e8 Mon Sep 17 00:00:00 2001 From: Erik Hetzner Date: Wed, 27 May 2026 14:11:40 -0700 Subject: [PATCH 3/5] fix build-preprocessors --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index c910071..acfa51b 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,9 @@ }, "scripts": { "build": "tsc && chmod +x dist/cli.js", - "build-preprocessors": "npm run build && rm src/preprocess/*js && bash -c \"for n in src/preprocess/*xsl ; do npm exec xjslt compile --standalone \\$n \\${n/xsl/js} ; done\" && prettier -w src/preprocess/ && npm run build", + "prebuild-preprocessors": "npm run build && rm src/preprocess/*js", + "build-preprocessors": "bash -c \"for n in src/preprocess/*xsl ; do npm exec -- xjslt compile --standalone \\$n \\${n/xsl/js} ; done\"", + "postbuild-preprocessors": "prettier -w src/preprocess/ && npm run build", "pretest": "if [ -d xslt30-test ] ; then cd xslt30-test && git pull && cd .. ; else git clone --depth 1 https://github.com/w3c/xslt30-test/ ; fi", "test": "jest --coverage --verbose", "check": "jest && prettier -c src/ test/", From aeb9b5e0b69eeb4d31987a798802d5b22c3c7866 Mon Sep 17 00:00:00 2001 From: Erik Hetzner Date: Wed, 27 May 2026 14:17:40 -0700 Subject: [PATCH 4/5] bump node version on github --- .github/workflows/test.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ce8ac08..9e18949 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,18 +11,17 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - name: Checkout xslt30-test - uses: actions/checkout@v4 + uses: actions/checkout@v5 with: repository: w3c/xslt30-test path: xslt30-test - name: Set up Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: - node-version: '20' cache: 'npm' - name: Install dependencies From e385201c36b05b5d242687de222d5db7fcd8a3bb Mon Sep 17 00:00:00 2001 From: Erik Hetzner Date: Wed, 27 May 2026 14:22:20 -0700 Subject: [PATCH 5/5] drop running preprocessors in github --- .github/workflows/test.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9e18949..611b452 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -27,8 +27,5 @@ jobs: - name: Install dependencies run: npm ci - - name: Compile preprocessors - run: npm run build-preprocessors - - name: Run tests run: npm test