@@ -2,20 +2,23 @@ name: CI
22
33on :
44 push :
5- branches : [ main ]
5+ branches : [main]
66 pull_request :
7- branches : [ main ]
7+ branches : [main]
8+ workflow_call : {}
89
10+ permissions : {}
11+
912jobs :
1013 test :
1114 name : Test
1215 runs-on : ${{ matrix.os }}
1316 strategy :
1417 matrix :
1518 os :
16- - ubuntu-latest
19+ - ubuntu-24.04
1720 - macos-13
18- - windows-latest
21+ - windows-2022
1922 node-version :
2023 - 14
2124 - 16
@@ -25,31 +28,44 @@ jobs:
2528 - 20
2629 - 21
2730 - 22
31+ - 23
2832 steps :
29- - uses : actions/checkout@v2
33+ - name : Harden Runner
34+ uses : step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
35+ with :
36+ egress-policy : audit
37+ - name : Checkout Repository
38+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3039 - name : Use Node.js ${{ matrix.node-version }}
31- uses : actions/setup-node@v1
40+ uses : actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
3241 with :
3342 node-version : ${{ matrix.node-version }}
43+ cache : npm
3444 - name : Install Dependencies
35- run : npm ci --ignore-scripts
45+ run : npm ci --prefer-offline -- ignore-scripts
3646 - name : Run Tests
37- run : npm test
47+ run : npm test --ignore-scripts
3848 code-lint :
3949 name : Code Lint
4050 runs-on : ubuntu-latest
4151 steps :
42- - uses : actions/checkout@v2
43- - name : Use Node.js 16
44- uses : actions/setup-node@v1
52+ - name : Harden Runner
53+ uses : step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
54+ with :
55+ egress-policy : audit
56+ - name : Checkout Repository
57+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
58+ - name : Use Node.js 22
59+ uses : actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
4560 with :
46- node-version : 16 # LTS
61+ node-version : 22 # LTS
62+ cache : npm
4763 - name : Install Dependencies
48- run : npm ci --ignore-scripts
64+ run : npm ci --prefer-offline -- ignore-scripts
4965 - name : Lockfile Lint
5066 run : |
5167 npm exec \
52- --no-install \
68+ --no \
5369 --package=lockfile-lint \
5470 -- \
5571 lockfile-lint \
0 commit comments