Debian Codegraph @

.github/workflows/node.js.yml

raw symbols SCIP
1 name: Node
2
3 on:
4 pull_request:
5 push:
6 branches-ignore: "dependabot/**"
7
8 permissions:
9 contents: read
10
11 env:
12 NODE_VERSION: 22.x
13
14 jobs:
15 build-and-test:
16 runs-on: ubuntu-latest
17 name: Build & lint
18
19 steps:
20 - name: Checkout
21 uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
22
23 - name: Use Node.js ${{ env.NODE_VERSION }}
24 uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
25 with:
26 node-version: ${{ env.NODE_VERSION }}
27 cache: npm
28 cache-dependency-path: '**/package-lock.json'
29
30 - name: Install npm dependencies
31 run: npm ci
32
33 - name: Build
34 run: npm run build
35
36 # Lint must happen after build as we lint generated files.
37 - name: Lint
38 run: npm run lint