generated from dgma/sol-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (56 loc) · 1.35 KB
/
quality-gate.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Quality Gate
on:
push:
concurrency:
group: quality-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
packages: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- run: make lint
check-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
with:
foundry: true
- run: make compile
- run: make deploy
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
with:
foundry: true
- run: make test
slither:
permissions:
# required for all workflows
security-events: write
packages: read
# only required for workflows in private repositorie
contents: read
actions: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- run: rm foundry.toml && touch .env
- uses: crytic/slither-action@v0.3.0
id: slither
with:
node-version: 20.11.0
sarif: results.sarif
fail-on: none
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: ${{ steps.slither.outputs.sarif }}