🔧 (codecov.yml): Add new codecov configuration file to ignore test an… #13
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: Codecov | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
check: | |
name: Foundry project | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
- name: Change to Foundry directory | |
run: cd foundry | |
- name: Run Foundry Install | |
run: forge install | |
working-directory: foundry | |
- name: Run Tests with Foundry | |
run: forge test -vvv | |
working-directory: foundry | |
- name: Run snapshot | |
run: forge snapshot | |
working-directory: foundry | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v4.0.1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
slug: Pedrojok01/PackMyNFT |