From 42475219d03d2032ddf417aa48237988b0292692 Mon Sep 17 00:00:00 2001 From: Alexander Jones Date: Tue, 28 Jan 2025 02:34:50 -0600 Subject: [PATCH 1/2] Add JSON spec tests as separate GitHub action --- .github/workflows/ci.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 352af3fe..eed1292d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,6 +30,29 @@ jobs: - name: Test with Node.js ${{ matrix.node-version }} run: npm test + JSON-spec-tests: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [18.x, 'node'] + + steps: + - name: Check out the code + uses: actions/checkout@v4 + - name: Set up with Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + - name: Print Node.js version and CI environment + run: | + echo "Node.js version: $(node -v)" + echo "Environment: CI=${{ env.CI }}" + - name: Download dependencies + run: npm ci + - name: Run JSON spec tests with Node.js ${{ matrix.node-version }} + run: npm testSpecs + Coverage: runs-on: ubuntu-latest From b8158d3692b0d742ea6397fa76a4273922867bd8 Mon Sep 17 00:00:00 2001 From: Alexander Jones Date: Tue, 28 Jan 2025 02:36:36 -0600 Subject: [PATCH 2/2] Correct command invocation --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eed1292d..2c0888f8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -51,7 +51,7 @@ jobs: - name: Download dependencies run: npm ci - name: Run JSON spec tests with Node.js ${{ matrix.node-version }} - run: npm testSpecs + run: npm run testSpecs Coverage: runs-on: ubuntu-latest