File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : ' Tests'
2+
3+ on :
4+ pull_request :
5+ push :
6+ branches : [ 'main' ]
7+
8+ permissions :
9+ contents : read
10+
11+ concurrency :
12+ group : ${{ github.workflow }}-${{ github.ref }}
13+ cancel-in-progress : true
14+
15+ jobs :
16+ test :
17+ name : Test (Node ${{ matrix.node-version }})
18+ runs-on : ubuntu-latest
19+
20+ strategy :
21+ fail-fast : false
22+ matrix :
23+ node-version : [ '20.x', '22.x' ]
24+
25+ steps :
26+
27+ - name : Harden the runner (Audit all outbound calls)
28+ uses : step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
29+ with :
30+ egress-policy : audit
31+
32+ - uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
33+
34+ - uses : actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
35+ with :
36+ node-version : ${{ matrix.node-version }}
37+ cache : ' npm'
38+
39+ - name : Install
40+ run : npm ci --ignore-scripts
41+
42+ - name : Test
43+ run : npm test
You can’t perform that action at this time.
0 commit comments