Skip to content

Commit

Permalink
add empty changed files check
Browse files Browse the repository at this point in the history
  • Loading branch information
winsvega committed Apr 26, 2024
1 parent f8fce7d commit b575bf3
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
run: |
echo $(pwd)
echo ${{ github.workspace }}
sudo apt-get install docker-ce
#install pyspec deps from root repo
Expand Down Expand Up @@ -80,6 +81,12 @@ jobs:
echo "New lines introduced in converted-ethereum-tests.txt:"
lines=$(git diff origin/${{ github.base_ref }} HEAD -- converted-ethereum-tests.txt | grep "^+" | grep -v "^+++")
files=$(echo "$lines" | grep -oP '(?<=\+).+\.json')
if [ -z "$files" ]; then
echo "Error: No new JSON files found in converted-ethereum-tests.txt"
exit 1
fi
for file in $files; do
echo $file
done
Expand Down Expand Up @@ -109,8 +116,13 @@ jobs:
fill $file --until=Cancun
done
files=$(find fixtures/state_tests -type f -name "*.json")
if [ -z "$files" ]; then
echo "Error: No filled JSON fixtures found in fixtures/state_tests."
exit 1
fi
mkdir -p ${{ github.workspace }}/evmtest_coverage/testPATCH
find fixtures -type f -name "*.json"
find fixtures/state_tests -type f -name "*.json" -exec cp {} ${{ github.workspace }}/evmtest_coverage/testPATCH \;
- name: Download evmone image if not cached
Expand Down

0 comments on commit b575bf3

Please sign in to comment.