From 399b48a721bc4863aee6e068b27c0f2ea6d0ecc5 Mon Sep 17 00:00:00 2001 From: korrrba <88761781+gitcoindev@users.noreply.github.com> Date: Mon, 21 Aug 2023 16:01:57 +0200 Subject: [PATCH] Update deep-fuzz.yml --- .github/workflows/deep-fuzz.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deep-fuzz.yml b/.github/workflows/deep-fuzz.yml index 3c240e1ff..239e556f1 100644 --- a/.github/workflows/deep-fuzz.yml +++ b/.github/workflows/deep-fuzz.yml @@ -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 @@ -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