Merge pull request #20 from ChS23/main #207
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: test | |
| on: | |
| - push | |
| - pull_request | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [22.x, 24.x] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| - name: Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: pnpm | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Fetch parser reference fixtures | |
| run: bash scripts/fetch-parser-refs.sh | |
| - name: Schema in sync with TS types | |
| run: pnpm schema:check | |
| - name: Rule reference in sync with registry | |
| run: pnpm docs:check | |
| # Build before Lint: `pnpm lint` typechecks @aact/view, which imports | |
| # `aact` — its declarations must exist first. | |
| - name: Build packages | |
| run: pnpm build | |
| - name: Lint | |
| run: pnpm lint | |
| - name: Pack smoke | |
| run: pnpm pack:smoke | |
| - name: Tests with coverage (unit + integration + e2e) | |
| run: pnpm test:coverage | |
| - name: Upload coverage report | |
| if: matrix.node-version == '24.x' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage-report | |
| path: coverage/ | |
| retention-days: 14 |