Skip to content

Commit 1e1eea3

Browse files
committed
Merge branch 'stage'
Adds Github Actions workflow for auto build and dependency check with debricked
2 parents b579cdb + c8b2500 commit 1e1eea3

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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"

0 commit comments

Comments
 (0)