-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: move forge test intense workflow into separate file (#391)
* refactor: move forge intense workflow into separate file * refactor: remove and modify some small details
- Loading branch information
1 parent
419952c
commit c9abbe4
Showing
2 changed files
with
59 additions
and
50 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Forge Test (Intense) | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- mainnet | ||
- testnet-holesky | ||
- dev | ||
|
||
env: | ||
FOUNDRY_PROFILE: ci | ||
RPC_MAINNET: ${{ secrets.RPC_MAINNET }} | ||
RPC_HOLESKY: ${{ secrets.RPC_HOLESKY }} | ||
CHAIN_ID: ${{ secrets.CHAIN_ID }} | ||
|
||
jobs: | ||
# ----------------------------------------------------------------------- | ||
# Forge Test (Intense) | ||
# ----------------------------------------------------------------------- | ||
|
||
forge-test-intense: | ||
name: Test (Intense) | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Check out repository with all submodules for complete codebase access. | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
# Install the Foundry toolchain. | ||
- name: Install Foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
with: | ||
version: stable | ||
|
||
# Build the project and display contract sizes. | ||
- name: Forge Build | ||
run: | | ||
forge --version | ||
forge build --sizes | ||
id: build | ||
|
||
# Run Forge Test (Intense) | ||
- name: Forge Test (Intense) | ||
run: | | ||
echo -e "\033[1;33mWarning: This workflow may take several hours to complete.\033[0m" | ||
echo -e "\033[1;33mThis intense fuzzing workflow is optional but helps catch edge cases through extended testing.\033[0m" | ||
FOUNDRY_PROFILE=intense forge test -vvv |
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