-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (37 loc) · 1.08 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
on:
push:
branches:
- feature/*
- bugfix/*
- develop
- release/*
- hotfix/*
- main
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Init
run: npm ci
- name: Run coverage
run: npm run coverage
- 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]
id: slither
with:
target: "contracts/"
slither-args: --checklist --markdown-root ${{ github.server_url }}/${{ github.repository }}/blob/${{ github.sha }}/
node-version: "20"
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: ${{ steps.slither.outputs.sarif }}