File tree Expand file tree Collapse file tree 2 files changed +6
-17
lines changed Expand file tree Collapse file tree 2 files changed +6
-17
lines changed Original file line number Diff line number Diff line change 63
63
- uses : actions/setup-node@v1
64
64
with :
65
65
node-version : 12.x
66
- - uses : actions/checkout@v1
66
+ - uses : actions/checkout@v2
67
67
with :
68
68
submodules : recursive
69
69
86
86
# Run git stash in case github-action-benchmark has trouble switching to gh-pages branch due to differing package-locks
87
87
- run : git stash
88
88
89
- - name : Set auto-push for benchmarks to true if on master
90
- id : auto_push
91
- run : |
92
- if [$REF == 'refs/heads/master']
93
- then
94
- echo "::set-output name=auto_push::true"
95
- else
96
- echo "::set-output name=auto_push::false"
97
- fi
98
- env :
99
- REF : ${{ github.ref }}
100
-
101
89
- name : Compare benchmarks
102
90
uses : rhysd/github-action-benchmark@v1
103
- if : github.ref == 'refs/heads/master'
104
91
with :
105
92
tool : ' benchmarkjs'
106
93
# Where the output from the benchmark tool is stored
112
99
# GitHub API token to make a commit comment
113
100
github-token : ${{ secrets.GITHUB_TOKEN }}
114
101
# Push and deploy to GitHub pages branch automatically (if on master)
115
- auto-push : ${{ steps.auto_push.outputs.auto_push }}
102
+ auto-push : ${{ github.ref == 'refs/heads/master' }}
103
+ # Only keep and display the last 30 commits worth of benchmark data
104
+ max-items-in-chart : 30
116
105
117
106
# Re-apply git stash to prepare for saving back to cache.
118
107
# Avoids exit code 1 by checking if there are changes to be stashed first
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ jobs:
106
106
- uses : actions/setup-node@v1
107
107
with :
108
108
node-version : 12.x
109
- - uses : actions/checkout@v1
109
+ - uses : actions/checkout@v2
110
110
with :
111
111
submodules : recursive
112
112
- name : Dependency cache
@@ -147,7 +147,7 @@ jobs:
147
147
- uses : actions/setup-node@v1
148
148
with :
149
149
node-version : 12.x
150
- - uses : actions/checkout@v1
150
+ - uses : actions/checkout@v2
151
151
with :
152
152
submodules : recursive
153
153
- name : Dependency cache
You can’t perform that action at this time.
0 commit comments