File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed
Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ name : " [Stage, Production] Push/PR action"
2+ on :
3+ # Trigger conditions. This action will be triggered for each condition. Ex.
4+ # making a PR from stage to master, then pushing a change to stage will trigger
5+ # this action, or all jobs, twice.
6+ push :
7+ branches :
8+ - " stage"
9+ - " master"
10+ paths :
11+ - " src/**"
12+ pull_request :
13+ branches :
14+ - " stage"
15+ - " master"
16+ jobs :
17+ vulnerabilities-scan :
18+ runs-on : ubuntu-latest
19+ steps :
20+ - uses : actions/checkout@v2
21+ name : Checkout repository
22+ - uses : debricked/actions/scan@v1
23+ name : Run a vulnerability scan
24+ env :
25+ # Token must have API access scope to run scans
26+ DEBRICKED_TOKEN : ${{ secrets.DEBRICKED_TOKEN }}
27+ code-build :
28+ runs-on : ubuntu-latest
29+ steps :
30+ - uses : actions/checkout@v2
31+ name : Checkout repository
32+ - uses : actions/setup-node@v3
33+ name : Set NodeJS version
34+ with :
35+ node-version : 14
36+ - name : Install packages
37+ run : " npm ci"
38+ - name : Build source
39+ run : " npm run build"
You can’t perform that action at this time.
0 commit comments