Debian Codegraph @

.github/workflows/test.yml

raw
1 name: Test
2 on:
3 push:
4 branches:
5 - main
6 pull_request:
7 permissions:
8 contents: read
9 jobs:
10 full:
11 name: Node.js Latest Full
12 runs-on: ubuntu-latest
13 steps:
14 - name: Checkout the repository
15 uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
16 - name: Install pnpm
17 uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
18 with:
19 version: 10
20 - name: Install Node.js
21 uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
22 with:
23 node-version: 24
24 cache: pnpm
25 - name: Install dependencies
26 run: pnpm install --frozen-lockfile --ignore-scripts
27 - name: Run tests
28 run: pnpm test
29 short:
30 runs-on: ubuntu-latest
31 strategy:
32 matrix:
33 node-version:
34 - 22
35 - 20
36 name: Node.js ${{ matrix.node-version }} Quick
37 steps:
38 - name: Checkout the repository
39 uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
40 - name: Install pnpm
41 uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
42 with:
43 version: 10
44 - name: Install Node.js ${{ matrix.node-version }}
45 uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
46 with:
47 node-version: ${{ matrix.node-version }}
48 cache: pnpm
49 - name: Install dependencies
50 run: pnpm install --frozen-lockfile --ignore-scripts
51 - name: Run unit tests
52 run: pnpm unit