Merge pull request #47 from rivet-dev/ralph/nodejs-conformance-tests #2
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: Node.js Conformance Tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| conformance: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 8.15.6 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: pnpm | |
| cache-dependency-path: pnpm-lock.yaml | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Build | |
| run: pnpm build | |
| - name: Import upstream Node.js tests | |
| run: pnpm tsx packages/secure-exec/tests/node-conformance/scripts/import-tests.ts --node-version 22.14.0 | |
| - name: Validate expectations | |
| run: pnpm tsx packages/secure-exec/tests/node-conformance/scripts/validate-expectations.ts | |
| - name: Run conformance tests | |
| run: pnpm vitest run packages/secure-exec/tests/node-conformance/runner.test.ts | |
| - name: Generate conformance report | |
| run: pnpm tsx packages/secure-exec/tests/node-conformance/scripts/generate-report.ts | |
| - name: Upload conformance artifacts | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: conformance-report | |
| path: | | |
| packages/secure-exec/tests/node-conformance/conformance-report.json | |
| docs/conformance-report.mdx |