Skip to content

Commit

Permalink
only push to gh-pages branch on commits to master
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanio committed Aug 18, 2020
1 parent 1c55b9c commit cc7b107
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions .github/workflows/vm-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,15 +137,29 @@ jobs:
- run: npm run benchmarks -- 10 | tee output.txt
working-directory: ${{ env.cwd }}

- name: Store benchmark result
- 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
with:
tool: 'benchmarkjs'
# Where the output from the benchmark tool is stored
output-file-path: ${{ env.cwd }}/output.txt
# GitHub API token to make a commit comment
github-token: ${{ secrets.GITHUB_TOKEN }}
# Enable alert commit comment
comment-on-alert: true
# Push and deploy GitHub pages branch automatically
auto-push: true
# Always leave a commit comment comparing the current benchmark with previous
comment-always: true
# 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 }}

1 comment on commit cc7b107

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: cc7b107 Previous: b402204 Ratio
Block 9422905 4513 ops/sec (±3.91%) 4039 ops/sec (±3.38%) 0.89
Block 9422906 4344 ops/sec (±6.73%) 4008 ops/sec (±5.90%) 0.92
Block 9422907 4588 ops/sec (±1.03%) 3918 ops/sec (±8.83%) 0.85
Block 9422908 4515 ops/sec (±1.35%) 3977 ops/sec (±4.78%) 0.88
Block 9422909 3866 ops/sec (±10.20%) 4017 ops/sec (±1.68%) 1.04
Block 9422910 4368 ops/sec (±1.40%) 3958 ops/sec (±1.41%) 0.91
Block 9422911 4294 ops/sec (±1.28%) 3104 ops/sec (±16.21%) 0.72
Block 9422912 4186 ops/sec (±2.33%) 3770 ops/sec (±1.49%) 0.90
Block 9422913 4110 ops/sec (±1.77%) 3808 ops/sec (±1.39%) 0.93
Block 9422914 4027 ops/sec (±1.75%) 3676 ops/sec (±2.47%) 0.91

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.