Fix: ToB-22 (using msg.value
in a loop)
#8792
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: Foundry Tests | |
on: | |
pull_request: | |
paths: | |
- 'packages/contracts-core/**' | |
push: | |
paths: | |
- 'packages/contracts-core/**' | |
- '.github/workflows/foundry-tests.yml' | |
jobs: | |
cancel-outdated: | |
name: Cancel Outdated Jobs | |
runs-on: ubuntu-latest | |
steps: | |
- id: skip_check | |
if: ${{ format('refs/heads/{0}', github.event.repository.default_branch) != github.ref && !contains(github.event.head_commit.message, '[no_skip]') }} | |
uses: fkirc/skip-duplicate-actions@v5 | |
with: | |
cancel_others: 'true' | |
coverage: | |
name: Foundry Coverage | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Setup Node JS | |
uses: ./.github/actions/setup-nodejs | |
- name: Installing dependencies | |
working-directory: ./packages/contracts-core | |
run: yarn install --immutable | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Run Foundry Tests | |
working-directory: ./packages/contracts-core | |
run: forge coverage -vvv --report lcov --report summary >> $GITHUB_STEP_SUMMARY | |
- name: Send Coverage (Codecov) | |
uses: Wandalen/[email protected] | |
with: | |
action: codecov/codecov-action@v3 | |
current_path: ./packages/contracts-core/ | |
with: | | |
token: ${{ secrets.CODECOV }} | |
fail_ci_if_error: true # optional (default = false) | |
verbose: true # optional (default = false) | |
flags: solidity | |
attempt_limit: 5 | |
attempt_delay: 30000 | |
snapshot: | |
runs-on: ubuntu-latest | |
name: Foundry Gas Snapshot | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Setup Node JS | |
uses: ./.github/actions/setup-nodejs | |
- name: Installing dependencies | |
working-directory: ./packages/contracts-core | |
run: yarn install --immutable | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Run snapshot | |
working-directory: ./packages/contracts-core | |
run: forge snapshot >> $GITHUB_STEP_SUMMARY |