Merge branch 'feature/implement-upgrade-for-voucherHub' of https://gi… #468
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |