-
Notifications
You must be signed in to change notification settings - Fork 5
46 lines (42 loc) · 1.21 KB
/
develop-branch.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
42
43
44
45
46
name: Develop Branch Workflow
on:
push:
branches: [ develop, main ]
paths-ignore:
- '.github/**'
pull_request:
branches: [ develop, main ]
paths-ignore:
- '.github/**'
jobs:
Build-Test-Deploy:
runs-on: ubuntu-latest
environment:
name: Dev
steps:
- name: Checkout repo
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup & Configure Node
uses: actions/setup-node@v1
with:
node-version: 16
registry-url: https://npm.pkg.github.com/
- name: Build
run: echo "Running install with GPR Token"; npm install; npm run build
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run Unit Tests
run: npm run test
- name: Build for scan
if: ${{ success() }}
run: docker-compose up -d && echo "Completed Build for scan"
- name: ZAP Scan
if: ${{ success() }}
uses: zaproxy/action-baseline@v0.3.0
with:
target: 'http://localhost:9080'
cmd_options: '-I' # Don't fail on WARNings
- name: clean up after scan
run: docker-compose down && echo "Completed clean up after scan"