Skip to content

Commit

Permalink
Merge pull request ethereumjs#1143 from ethereumjs/fix-trie-benchmarks
Browse files Browse the repository at this point in the history
Trie: fix benchmarks
  • Loading branch information
holgerd77 authored Mar 9, 2021
2 parents 8201891 + 42640f5 commit 5a86053
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 17 deletions.
19 changes: 4 additions & 15 deletions .github/workflows/trie-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
- uses: actions/setup-node@v1
with:
node-version: 12.x
- uses: actions/checkout@v1
- uses: actions/checkout@v2
with:
submodules: recursive

Expand All @@ -86,21 +86,8 @@ jobs:
# Run git stash in case github-action-benchmark has trouble switching to gh-pages branch due to differing package-locks
- run: git stash

- name: Set auto-push for benchmarks to true if on master
id: auto_push
run: |
if [$REF == 'refs/heads/master']
then
echo "::set-output name=auto_push::true"
else
echo "::set-output name=auto_push::false"
fi
env:
REF: ${{ github.ref }}

- name: Compare benchmarks
uses: rhysd/github-action-benchmark@v1
if: github.ref == 'refs/heads/master'
with:
tool: 'benchmarkjs'
# Where the output from the benchmark tool is stored
Expand All @@ -112,7 +99,9 @@ jobs:
# GitHub API token to make a commit comment
github-token: ${{ secrets.GITHUB_TOKEN }}
# Push and deploy to GitHub pages branch automatically (if on master)
auto-push: ${{ steps.auto_push.outputs.auto_push }}
auto-push: ${{ github.ref == 'refs/heads/master' }}
# Only keep and display the last 30 commits worth of benchmark data
max-items-in-chart: 30

# Re-apply git stash to prepare for saving back to cache.
# Avoids exit code 1 by checking if there are changes to be stashed first
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/vm-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ jobs:
- uses: actions/setup-node@v1
with:
node-version: 12.x
- uses: actions/checkout@v1
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Dependency cache
Expand Down Expand Up @@ -147,7 +147,7 @@ jobs:
- uses: actions/setup-node@v1
with:
node-version: 12.x
- uses: actions/checkout@v1
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Dependency cache
Expand Down

0 comments on commit 5a86053

Please sign in to comment.