feat(migrate-hardhat-test): implement write-integration-test
#38
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: test | |
on: | |
push: | |
branches: | |
- mainnet | |
- testnet | |
- 'feature/*' | |
- 'features/*' | |
pull_request: | |
branches: | |
- mainnet | |
- testnet | |
- 'feature/*' | |
- 'features/*' | |
env: | |
FOUNDRY_PROFILE: ci | |
jobs: | |
check: | |
strategy: | |
fail-fast: true | |
name: Foundry project | |
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: Run Forge build | |
run: | | |
forge --version | |
forge build | |
id: build | |
- name: Run Forge tests | |
run: | | |
anvil --chain-id 2024 --port 8546 --block-time 3 & | |
anvil --chain-id 2 --port 8547 --block-time 3 & | |
forge test -vvv | |
id: test |