Release v5.0.2 #9
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: Forge Tests (PR) | |
on: [pull_request] | |
jobs: | |
test: | |
name: Test with "deep" profile | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Foundry | |
uses: onbjerg/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Install submodules | |
run: | | |
git config --global url."https://github.com/".insteadOf "[email protected]:" | |
git submodule update --init --recursive | |
- name: Run forge tests | |
run: ./scripts/test.sh -p deep | |
coverage_report: | |
name: Generate coverage report | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Foundry | |
uses: onbjerg/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Install submodules | |
run: | | |
git config --global url."https://github.com/".insteadOf "[email protected]:" | |
git submodule update --init --recursive | |
- name: Generate coverage report | |
run: | | |
forge coverage --report lcov | |
sudo apt-get install lcov | |
lcov --remove lcov.info -o lcov.info 'tests/*' | |
- name: Report code coverage | |
uses: zgosalvez/github-actions-report-lcov@v1 | |
with: | |
coverage-files: lcov.info | |
minimum-coverage: 90 | |
artifact-name: code-coverage-report | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
working-directory: ./ | |
size_check: | |
name: Check contracts sizes | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Foundry | |
uses: onbjerg/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Install submodules | |
run: | | |
git config --global url."https://github.com/".insteadOf "[email protected]:" | |
git submodule update --init --recursive | |
- name: Check contract sizes | |
run: ./scripts/check-sizes.sh |