Skip to content

Commit

Permalink
recover main.yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
Le-Caignec committed Dec 23, 2024
1 parent f63491c commit a6b721e
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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 }}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
"build": "hardhat clean && hardhat compile",
"test": "hardhat test --network local-bellecour-fork",
"test-ci": "npm run test && FACTORY=false npm run test",
"upgrade": "hardhat run ./scripts/upgrade.js",
"upgrade-local-fork": "mkdir -p .openzeppelin/local-fork && cp -r .openzeppelin/prod/. .openzeppelin/local-fork && MANIFEST_DEFAULT_DIR=.openzeppelin/local-fork ENV=prod hardhat run ./scripts/upgrade-local-fork.js",
"coverage": "hardhat coverage",
"format": "prettier --write '{scripts,test,contracts,deploy,config}/**/*.{js,sol}'",
"check-format": "prettier --ignore-path .gitignore --check '{scripts,test,contracts}/**/*.{js,sol}'",
Expand Down

0 comments on commit a6b721e

Please sign in to comment.