|
11 | 11 | workflow_dispatch: |
12 | 12 |
|
13 | 13 | jobs: |
14 | | - verify: |
15 | | - name: Verify [Node ${{ matrix.node_version }}] |
16 | | - runs-on: ${{ matrix.os }} |
17 | | - strategy: |
18 | | - matrix: |
19 | | - node_version: ['18', '20', '22', '24'] |
20 | | - os: [ubuntu-latest] |
| 14 | + lint: |
| 15 | + name: Lint (Node 24) |
| 16 | + runs-on: ubuntu-latest |
21 | 17 |
|
22 | 18 | steps: |
23 | 19 | - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # tag=v4.2.2 |
24 | | - - uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # tag=v4.1.0 |
25 | | - |
26 | | - - name: Use Node.js ${{ matrix.node_version }} |
27 | | - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # tag=v4.4.0 |
| 20 | + - name: Setup workspace |
| 21 | + uses: ./.github/actions/setup-pnpm-node |
28 | 22 | with: |
29 | | - node-version: ${{ matrix.node_version }} |
30 | | - cache: 'pnpm' |
31 | | - |
32 | | - - name: Install dependencies |
33 | | - run: pnpm install --frozen-lockfile |
| 23 | + node-version: '24' |
34 | 24 |
|
35 | 25 | - name: Lint |
36 | 26 | run: pnpm lint:ci |
37 | 27 |
|
| 28 | + typecheck: |
| 29 | + name: TypeScript (Node 24) |
| 30 | + runs-on: ubuntu-latest |
| 31 | + |
| 32 | + steps: |
| 33 | + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # tag=v4.2.2 |
| 34 | + - name: Setup workspace |
| 35 | + uses: ./.github/actions/setup-pnpm-node |
| 36 | + with: |
| 37 | + node-version: '24' |
| 38 | + |
38 | 39 | - name: Type check |
39 | 40 | run: pnpm typecheck |
40 | 41 |
|
| 42 | + test_pr: |
| 43 | + name: Tests [Node 24] |
| 44 | + if: github.event_name == 'pull_request' |
| 45 | + runs-on: ubuntu-latest |
| 46 | + |
| 47 | + steps: |
| 48 | + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # tag=v4.2.2 |
| 49 | + - name: Setup workspace |
| 50 | + uses: ./.github/actions/setup-pnpm-node |
| 51 | + with: |
| 52 | + node-version: '24' |
| 53 | + |
| 54 | + - name: Run tests |
| 55 | + run: pnpm test |
| 56 | + |
| 57 | + test_main_matrix: |
| 58 | + name: Tests [Node ${{ matrix.node_version }}] |
| 59 | + if: github.ref == 'refs/heads/main' |
| 60 | + runs-on: ${{ matrix.os }} |
| 61 | + strategy: |
| 62 | + matrix: |
| 63 | + node_version: ['18', '20', '22', '24'] |
| 64 | + os: [ubuntu-latest] |
| 65 | + |
| 66 | + steps: |
| 67 | + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # tag=v4.2.2 |
| 68 | + - name: Setup workspace |
| 69 | + uses: ./.github/actions/setup-pnpm-node |
| 70 | + with: |
| 71 | + node-version: ${{ matrix.node_version }} |
| 72 | + |
41 | 73 | - name: Run tests |
42 | 74 | run: pnpm test |
0 commit comments