Skip to content

Commit 42d4fa4

Browse files
committed
add npm audit
1 parent 40896fe commit 42d4fa4

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/run_test.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,20 @@ on:
77
jobs:
88
build:
99

10-
runs-on: macos-latest
11-
12-
strategy:
13-
matrix:
14-
node-version: [12.x]
10+
runs-on: ubuntu-latest
1511

1612
steps:
1713
- name: Clone and checkout branch
1814
uses: actions/checkout@v2
19-
- name: Use Node.js ${{ matrix.node-version }}
15+
- name: Set up Node.js version
2016
uses: actions/setup-node@v1
2117
with:
22-
node-version: ${{ matrix.node-version }}
18+
node-version: '12.x'
2319
- name: Install dependencies
2420
run: npm install
2521
- run: npm run build --if-present
2622
- name: Run the test
2723
run: npm test
24+
- run: npm audit
2825
env:
2926
CI: true

0 commit comments

Comments
 (0)