Skip to content

Commit

Permalink
Merge pull request SunWeb3Sec#589 from akshaynexus/fix-actions
Browse files Browse the repository at this point in the history
fix: fix final action issues
  • Loading branch information
SunWeb3Sec authored Mar 23, 2024
2 parents 2208496 + f2a72cf commit 8914a4e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/PRAutoTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,18 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0 # Required to fetch all branches
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Run Forge tests
run: |
shopt -s nullglob
changed_files=$(git diff --name-only origin/${{ github.event.pull_request.base.ref }} HEAD)
changed_files=$(git diff --name-only ${{ github.base_ref }} HEAD)
for file in $changed_files; do
if [[ $file == src/test/*_exp.sol ]]; then
forge test --contracts "$file" -vvv
fi
done
id: test
id: test

0 comments on commit 8914a4e

Please sign in to comment.