Skip to content

Commit

Permalink
refactor: move forge intense workflow into separate file
Browse files Browse the repository at this point in the history
  • Loading branch information
nadir-akhtar committed Feb 7, 2025
1 parent 419952c commit 3ddc338
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 35 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/forge-test-intense.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Forge Test (Intense)

on:
workflow_dispatch:
push:
branches:
- master
- 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
35 changes: 0 additions & 35 deletions .github/workflows/foundry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,41 +59,6 @@ jobs:
- name: "Forge Test Integration (Fork)"
run: FOUNDRY_PROFILE=forktest forge test --match-contract Integration -vvv

# -----------------------------------------------------------------------
# Forge Test (Intense)
# -----------------------------------------------------------------------

continuous-fuzzing:
name: Test (Intense)
runs-on: ubuntu-latest
strategy:
fail-fast: true
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
# -----------------------------------------------------------------------
# Forge Coverage
# -----------------------------------------------------------------------
Expand Down

0 comments on commit 3ddc338

Please sign in to comment.