There was an error while loading. Please reload this page.
1 parent aa67068 commit 3b1f8b7Copy full SHA for 3b1f8b7
.github/workflows/pr.yaml
@@ -35,3 +35,24 @@ jobs:
35
run: npm run lint
36
- name: Test
37
run: npm test
38
+
39
+ - name: Benchmark
40
+ run: npm run benchmark | tee benchmark.txt
41
42
+ - name: Download previous benchmark data
43
+ uses: actions/cache@v3
44
+ with:
45
+ path: ./cache
46
+ key: ${{ runner.os }}-benchmark
47
48
+ - name: Store benchmark result
49
+ uses: benchmark-action/github-action-benchmark@v1
50
51
+ tool: 'benchmarkjs'
52
+ output-file-path: benchmark.txt
53
+ external-data-json-path: ./cache/benchmark-data.json
54
+ github-token: ${{ secrets.GITHUB_TOKEN }}
55
+ alert-threshold: '150%'
56
+ comment-on-alert: true
57
+ fail-on-alert: true
58
+ alert-comment-cc-users: '@Stuk'
0 commit comments