Skip to content

Commit

Permalink
fix: complete script and compare gas
Browse files Browse the repository at this point in the history
  • Loading branch information
yohanelly95 committed Sep 29, 2023
1 parent 6557672 commit 0197b3b
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,16 @@ jobs:
else
BRANCH_NAME=$(echo ${GITHUB_REF#refs/heads/} | sed 's/\//-/g')
fi
echo "Current branch is $BRANCH_NAME"
if [ "$BRANCH_NAME" == "master" ]; then
echo "This is the master branch. Exiting..."
exit 0
fi
npm run test
mv ./gasReporterOutput.json /tmp/gasReporterOutput_Current.json
git checkout master
npm install
npm run test
mv ./gasReporterOutput.json /tmp/gasReporterOutput_Master.json
git checkout $BRANCH_NAME # Checkout back to the original branch
npm run gasCompare /tmp/gasReporterOutput_Current.json /tmp/gasReporterOutput_Master.json

0 comments on commit 0197b3b

Please sign in to comment.