Skip to content

Commit 215e1c7

Browse files
authored
Merge pull request #282 from 18F/test-audit-signatures-workflow
Add 'npm audit signatures' to workflow.
2 parents ac1dac4 + dc7e3ec commit 215e1c7

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

.github/workflows/ci.yml

+20-1
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,24 @@ jobs:
1717
run: npm ci
1818
- name: Lint javascript
1919
run: npm run lint
20+
audit_dependencies:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Code checkout
24+
uses: actions/checkout@v4
25+
- name: Install node
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version-file: ".nvmrc"
29+
cache: 'npm'
30+
- name: Install node dependencies
31+
run: npm ci
32+
- name: Validate npm package signatures
33+
run: npm audit signatures
2034
test:
21-
needs: lint
35+
needs:
36+
- lint
37+
- audit_dependencies
2238
runs-on: ubuntu-latest
2339
# Start Postgres as a service, wait until healthy. Uses latest Postgres version.
2440
services:
@@ -50,6 +66,7 @@ jobs:
5066
deploy_dev:
5167
needs:
5268
- lint
69+
- audit_dependencies
5370
- test
5471
if: github.ref == 'refs/heads/develop'
5572
uses: 18F/analytics-reporter-api/.github/workflows/deploy.yml@develop
@@ -67,6 +84,7 @@ jobs:
6784
deploy_stg:
6885
needs:
6986
- lint
87+
- audit_dependencies
7088
- test
7189
if: github.ref == 'refs/heads/staging'
7290
uses: 18F/analytics-reporter-api/.github/workflows/deploy.yml@develop
@@ -84,6 +102,7 @@ jobs:
84102
deploy_prd:
85103
needs:
86104
- lint
105+
- audit_dependencies
87106
- test
88107
if: github.ref == 'refs/heads/master'
89108
uses: 18F/analytics-reporter-api/.github/workflows/deploy.yml@develop

0 commit comments

Comments
 (0)