-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (36 loc) · 1.01 KB
/
nodejs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Node CI
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@master
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm ci, build, audit
run: |
#npm install
npm ci #Install a project with a clean slate, never write to package.json or any of the package-locks
#npm run build --if-present
npm run-script build --if-present
npm audit
#npm test
#npm run serve uses webpack-dev-server
#npm run dev does not use webpack-dev-server
env:
CI: true
security:
runs-on: ubuntu-latest
steps:
- name: Test for public javascript library vulnerabilities
uses: lirantal/is-website-vulnerable@main
with:
scan-url: "https://foothillastrosims.github.io/planetary-config-react/"