ci: verify vendored conformance is in sync with the canonical suite #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node: [ "18", "20", "22", "24" ] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| cache: npm | |
| - run: npm ci | |
| - name: Typecheck | |
| run: npm run typecheck | |
| - name: Build | |
| run: npm run build | |
| - name: Test | |
| run: npm test | |
| conformance: | |
| name: Conformance suite in sync | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Verify vendored conformance matches the canonical suite | |
| run: | | |
| git clone --depth 1 https://github.com/BabelQueue/conformance.git "$RUNNER_TEMP/conformance" | |
| diff -ru "$RUNNER_TEMP/conformance/manifest.json" "test/conformance/manifest.json" | |
| diff -ru "$RUNNER_TEMP/conformance/fixtures" "test/conformance/fixtures" | |
| diff -ru "$RUNNER_TEMP/conformance/schema" "test/conformance/schema" | |
| echo "Vendored conformance is in sync with the canonical suite." |