add alchemy provider key #42
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
on: [push] | |
name: Unit tests | |
jobs: | |
tests: | |
name: Forge Testing | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Install deps | |
run: forge install | |
- name: Run tests | |
run: forge test -vvv | |
- name: Generate coverage report | |
run: | | |
forge coverage --report lcov | |
id: coverage | |
- uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos | |
files: ./lcov.info # optional | |
#flags: unittests # optional | |
#name: codecov-umbrella # optional | |
#fail_ci_if_error: true # optional (default = false) | |
verbose: true | |
snapshot: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: dependencies | |
run: forge install | |
- name: check contract sizes | |
run: forge build --sizes | |
#- name: check gas snapshots | |
# run: forge snapshot --check | |