-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (39 loc) · 1.01 KB
/
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
name: Branch build
run-name: Branch build by ${{ github.actor }} 🚀
on: [push]
jobs:
build:
name: '🛠️ Build'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/goldstack-setup
lint:
name: '🖋️ Prettier and Lint'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/goldstack-setup
- run: |
yarn format-check
yarn lint
test:
name: '🔍 Tests'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v4 # used for local DynamoDB
with:
distribution: 'temurin'
java-version: '20'
- uses: ./.github/actions/goldstack-setup
- run: |
yarn test-ci
audit:
name: '🔒 NPM Audit'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/goldstack-setup
- run: |
yarn npm audit --all --recursive --severity critical