Skip to content

Commit

Permalink
fix: apply to all steps
Browse files Browse the repository at this point in the history
  • Loading branch information
bowenli86 committed Feb 15, 2025
1 parent ebb3ffb commit f6ae9a2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/foundry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,23 +44,23 @@ jobs:
# Build the project and display contract sizes.
- name: Forge Version
run: |
docker run --rm -v $(pwd):/mnt -w /mnt ghcr.io/foundry-rs/foundry:stable forge --version
docker run --rm -v $(pwd):/mnt -w /mnt ghcr.io/foundry-rs/foundry:stable bash -c "forge --version"
# Build the project and display contract sizes.
- name: Forge Build
run: |
docker run --rm -v $(pwd):/mnt -w /mnt ghcr.io/foundry-rs/foundry:stable forge build --sizes
docker run --rm -v $(pwd):/mnt -w /mnt ghcr.io/foundry-rs/foundry:stable bash -c "forge build --sizes"
# Run the test suite in parallel based on the matrix configuration.
- name: Run ${{ matrix.suite }} tests
run: |
case "${{ matrix.suite }}" in
Unit) docker run --rm -v $(pwd):/mnt -w /mnt ghcr.io/foundry-rs/foundry:stable \
forge test --no-match-contract Integration ;;
bash -c "forge test --no-match-contract Integration" ;;
Integration) docker run --rm -v $(pwd):/mnt -w /mnt ghcr.io/foundry-rs/foundry:stable \
forge test --match-contract Integration ;;
bash -c "forge test --match-contract Integration" ;;
Fork) docker run --rm -v $(pwd):/mnt -w /mnt ghcr.io/foundry-rs/foundry:stable \
forge test --match-contract Integration ;;
bash -c "forge test --match-contract Integration" ;;
esac
env:
FOUNDRY_PROFILE: ${{ matrix.suite == 'Fork' && 'forktest' || 'ci' }}
Expand Down

0 comments on commit f6ae9a2

Please sign in to comment.