File tree Expand file tree Collapse file tree 1 file changed +34
-10
lines changed Expand file tree Collapse file tree 1 file changed +34
-10
lines changed Original file line number Diff line number Diff line change 1- name : Node.js CI
1+ name : CI process for time-tracker app
22
33on :
4+ # Trigger the workflow on push or pull request
5+ push :
6+ branches :
7+ - ' *'
8+ - ' */*'
9+ - ' !master'
10+
411 pull_request :
5- branches : [ master ]
12+ types : [opened, edited, reopened, synchronize]
13+ branches :
14+ - master
615
716jobs :
8- build :
9-
17+ security-audit :
18+ name : Running npm audit
1019 runs-on : ubuntu-latest
20+ timeout-minutes : 60
21+ steps :
22+ - name : Clone and checkout branch
23+ uses : actions/checkout@master
24+
25+ - name : Set up Node.js version
26+ uses : actions/setup-node@v1
27+ with :
28+ node-version : ' 12.x'
29+
30+ - name : Security Audit
31+ run : npm audit
1132
33+ ci-test :
34+ name : Running unit tests
35+ runs-on : ubuntu-latest
36+ timeout-minutes : 90
1237 steps :
1338 - name : Clone and checkout branch
14- uses : actions/checkout@v2
39+ uses : actions/checkout@master
40+
1541 - name : Set up Node.js version
1642 uses : actions/setup-node@v1
1743 with :
1844 node-version : ' 12.x'
45+
1946 - name : Install dependencies
2047 run : npm install
21- - run : npm run build --if-present
48+
2249 - name : Run the test
23- run : npm test
24- - run : npm audit
25- env :
26- CI : true
50+ run : npm run ci-test --if-present
You can’t perform that action at this time.
0 commit comments