diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 352af3fe..2c0888f8 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 run testSpecs + Coverage: runs-on: ubuntu-latest