-
Notifications
You must be signed in to change notification settings - Fork 1
56 lines (54 loc) · 1.57 KB
/
main.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
name: Voucher Smart Contract CI
on:
push:
branches:
- feature/*
- bugfix/*
- release/*
- hotfix/*
- develop
- main
jobs:
default:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Install Dependencies
run: npm ci
- name: Build
run: npm run build
- name: Check Format
run: npm run check-format
- name: Generate UML
run: npm run uml
- name: Run Upgrade Test
env:
FACTORY: false
IS_LOCAL_FORK: true
run: npm run upgrade
- name: Run Tests
run: npm run test ----bail
- name: Run Coverage
run: npm run coverage #coverage only works on a non-fork hardhat node
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: iExecBlockchainComputing/iexec-voucher-contracts
- name: Run static analysis with slither
uses: crytic/[email protected]
with:
target: "contracts/"
slither-args: --checklist --markdown-root ${{ github.server_url }}/${{ github.repository }}/blob/${{ github.sha }}/
fail-on: none # TODO set this to high or other
sarif: results.sarif
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: results.sarif