Skip to content

new(tests): EIP-1014: Convert CREATE2 test from ethereum/tests #3

new(tests): EIP-1014: Convert CREATE2 test from ethereum/tests

new(tests): EIP-1014: Convert CREATE2 test from ethereum/tests #3

Workflow file for this run

name: Evmone Coverage Report
on:
pull_request:
paths:
- 'converted-ethereum-tests.txt' # This triggers the workflow only for changes in file.txt
jobs:
print-new-lines:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }} # Checks out the PR branch
fetch-depth: 0 # Necessary to fetch all history for diff
- name: Fetch target branch
run: git fetch origin ${{ github.base_ref }}:refs/remotes/origin/${{ github.base_ref }}
- name: Install deps
run: |
sudo apt-get install git
- name: Clone tests repo
run: |
mkdir testpath
cd testpath
git init
git remote add origin https://github.com/ethereum/tests.git
git config core.sparseCheckout true
git sparse-checkout set GeneralStateTests
git pull origin develop
# This command diffs the file and filters in new lines
- name: Parse converted tests from converted-ethereum-tests.txt
run: |
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')
for file in $files; do
echo $file
done