@@ -4,10 +4,6 @@ on: [pull_request]
44
55jobs :
66 benchmarks :
7- # Don't run on forks. Benchmarks can't run on forks because secrets aren't
8- # available, which are needed for posting result comments.
9- if : github.event.pull_request.head.repo.id == github.event.pull_request.base.repo.id
10-
117 name : benchmarks
128
139 runs-on : ubuntu-latest
@@ -51,76 +47,47 @@ jobs:
5147 cd packages/benchmarks
5248 npx tachometer \
5349 --config lit-html/kitchen-sink/tachometer.json \
54- --json-file lit-html/kitchen-sink/results.json
55-
56- - name : Report lit-html-kitchen-sink
57- uses : andrewiggins/tachometer-reporter-action@v2
58- with :
59- report-id : lit-html-kitchen-sink
60- path : packages/benchmarks/lit-html/kitchen-sink/results.json
61- pr-bench-name : this-change
62- base-bench-name : tip-of-tree
50+ --json-file lit-html-kitchen-sink.json
6351
6452 # lit-html:template-heavy
6553 - name : Benchmark lit-html/template-heavy
6654 run : |
6755 cd packages/benchmarks
6856 npx tachometer \
6957 --config lit-html/template-heavy/tachometer.json \
70- --json-file lit-html/template-heavy/results.json
71-
72- - name : Report lit-html-template-heavy
73- uses : andrewiggins/tachometer-reporter-action@v2
74- with :
75- report-id : lit-html-template-heavy
76- path : packages/benchmarks/lit-html/template-heavy/results.json
77- pr-bench-name : this-change
78- base-bench-name : tip-of-tree
58+ --json-file lit-html-template-heavy.json
7959
8060 # lit-html:repeat
8161 - name : Benchmark lit-html/repeat
8262 run : |
8363 cd packages/benchmarks
8464 npx tachometer \
8565 --config lit-html/repeat/tachometer.json \
86- --json-file lit-html/repeat/results.json
87-
88- - name : Report lit-html-repeat
89- uses : andrewiggins/tachometer-reporter-action@v2
90- with :
91- report-id : lit-html-repeat
92- path : packages/benchmarks/lit-html/repeat/results.json
93- pr-bench-name : this-change
94- base-bench-name : tip-of-tree
66+ --json-file lit-html-repeat.json
9567
9668 # lit-element:list
9769 - name : Benchmark lit-element/list
9870 run : |
9971 cd packages/benchmarks
10072 npx tachometer \
10173 --config lit-element/list/tachometer.json \
102- --json-file lit-element/list/results.json
103-
104- - name : Report lit-element-list
105- uses : andrewiggins/tachometer-reporter-action@v2
106- with :
107- report-id : lit-element-list
108- path : packages/benchmarks/lit-element/list/results.json
109- pr-bench-name : this-change
110- base-bench-name : tip-of-tree
74+ --json-file lit-element-list.json
11175
11276 # reactive-element:list
11377 - name : Benchmark reactive-element/list
11478 run : |
11579 cd packages/benchmarks
11680 npx tachometer \
11781 --config reactive-element/list/tachometer.json \
118- --json-file reactive-element/ list/results .json
82+ --json-file reactive-element- list.json
11983
120- - name : Report reactive-element-list
121- uses : andrewiggins/tachometer-reporter-action@v2
84+ - name : Upload results
85+ uses : actions/upload-artifact@v3
12286 with :
123- report-id : reactive-element-list
124- path : packages/benchmarks/reactive-element/list/results.json
125- pr-bench-name : this-change
126- base-bench-name : tip-of-tree
87+ name : results
88+ path : |
89+ packages/benchmarks/lit-html-kitchen-sink.json
90+ packages/benchmarks/lit-html-template-heavy.json
91+ packages/benchmarks/lit-html-repeat.json
92+ packages/benchmarks/lit-element-list.json
93+ packages/benchmarks/reactive-element-list.json
0 commit comments