Skip to content

Commit

Permalink
Update deep-fuzz.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gitcoindev authored Aug 21, 2023
1 parent 080673f commit 399b48a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/deep-fuzz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,8 @@ jobs:
run: forge install

- name: Deep Fuzz Solidity Contracts
working-directory: packages/contracts
run: |
cd packages/contracts
pwd
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
echo "$file was changed"
done
if ${{ github.event_name == 'pull_request' }}; then
forge test
fi
Expand All @@ -53,5 +49,7 @@ jobs:
echo "Searching for $f related tests"
forge tree | grep -E "^test|^src|${f}" | grep -B1 ${f} | grep ^test | cut -d' ' -f1 >> fuzz.txt
done
echo "Tests found:"
cat fuzz.txt | sort | uniq -u
cat fuzz.txt | sort | uniq -u | xargs -I{} forge test --match-path {}
fi

0 comments on commit 399b48a

Please sign in to comment.