chore(deps): update dependency solhint to v3.5.1 (#144) #676
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: Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
unit-tests: | |
name: Unit Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Install Dependencies | |
run: yarn install --frozen-lockfile | |
- name: Update Modules | |
run: yarn sync | |
- name: Run Tests | |
run: FOUNDRY_PROFILE=ci yarn test | |
- name: Run Coverage | |
run: forge coverage --report lcov | |
- name: Install lcov | |
run: sudo apt-get update && sudo apt-get install lcov | |
- name: Remove unwanted files | |
run: | | |
lcov --remove lcov.info 'test/*' -o lcov.info | |
lcov --remove lcov.info 'contracts/mocks/*' 'contracts/misc/Periphery.sol' -o lcov.info | |
lcov --remove lcov.info 'contracts/base/*' 'contracts/modules/mint/FeeMintModule.sol' -o lcov.info | |
lcov --remove lcov.info 'contracts/modules/link/*' 'contracts/upgradeability/*' -o lcov.info | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
directory: . | |
env_vars: OS,PYTHON | |
fail_ci_if_error: true | |
files: ./lcov.info | |
name: grappa-coverage | |
verbose: true |