Skip to content

Commit f08d03a

Browse files
ci(global): added audit job
1 parent 4217e4a commit f08d03a

File tree

1 file changed

+30
-3
lines changed

1 file changed

+30
-3
lines changed

.github/workflows/nodejs.packages.ci.yml

+30-3
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ on:
88

99
jobs:
1010
lint:
11-
name: Lint
11+
name: Lint the code
1212

1313
runs-on: ubuntu-22.04
1414

1515
strategy:
1616
matrix:
17-
node-version: [18.x, 20.x, 22.x]
17+
node-version: [ 22.x ]
1818
# See supported Node.js release schedule at https://nodejs.org/en/about/releases
1919

2020
steps:
@@ -33,8 +33,35 @@ jobs:
3333
- name: Lint the code
3434
run: yarn lint
3535

36+
audit:
37+
name: Audit the code
38+
39+
runs-on: ubuntu-22.04
40+
41+
strategy:
42+
matrix:
43+
node-version: [ 22.x ]
44+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases
45+
46+
steps:
47+
- name: Checkout code
48+
uses: actions/checkout@v4
49+
50+
- name: Setup Node.js environment
51+
uses: actions/setup-node@v4
52+
with:
53+
node-version: ${{ matrix.node-version }}
54+
cache: 'yarn'
55+
56+
- name: Install dependencies
57+
run: yarn --immutable
58+
59+
- name: Run dependencies audit
60+
run: yarn npm audit --all
61+
62+
3663
build:
37-
name: Build and Test
64+
name: Build and Test packages
3865

3966
runs-on: ubuntu-22.04
4067

0 commit comments

Comments
 (0)