Skip to content

Commit 9cccef8

Browse files
committed
Checkout benchmarks repo separately.
1 parent 506c45f commit 9cccef8

File tree

2 files changed

+14
-17
lines changed

2 files changed

+14
-17
lines changed

.github/workflows/benchmarks.yml

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,34 +13,31 @@ jobs:
1313

1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v2
17-
1816
- uses: actions/setup-node@v2
1917
with:
2018
node-version: 14
2119

22-
- name: Restore node_modules
23-
id: cache
24-
uses: actions/cache@v2
20+
- uses: actions/checkout@v2
2521
with:
26-
path: node_modules
27-
# Bump the number after `lit-element-1.x-node-modules` to force a
28-
# cache update. Note there are multiple cache actions in `tests.yml`
29-
# that should all keep keys in sync.
30-
key: lit-element-1.x-node-modules-0-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
22+
path: lit-element
3123

32-
- name: NPM install
33-
if: steps.cache.outputs.cache-hit != 'true'
34-
run: npm ci
24+
- uses: actions/checkout@v2
25+
with:
26+
path: benchmarks
27+
repository: Polymer/benchmarks
28+
ref: master
3529

36-
- name: Build
37-
run: npm run build
30+
- name: Copy tachometer config
31+
working-directory: ./benchmarks
32+
run: cp ../lit-element/tachometer.json .
3833

3934
- name: Benchmark
35+
working-directory: ./benchmarks
4036
run: npx tach --config tachometer.json --json-file results.json
4137

4238
- name: Report
4339
uses: andrewiggins/tachometer-reporter-action@v2
40+
working-directory: ./benchmarks
4441
with:
4542
path: results.json
4643
pr-bench-name: this-change

tachometer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"benchmarks": [
77
{
88
"name": "shack",
9-
"url": "./node_modules/lit-element-benchmarks/shack/",
9+
"url": "./shack/",
1010
"browser": {
1111
"name": "chrome",
1212
"headless": true
@@ -18,7 +18,7 @@
1818
"dependencies": {
1919
"lit-element": {
2020
"kind": "git",
21-
"repo": ".",
21+
"repo": "..",
2222
"ref": "HEAD",
2323
"setupCommands": [
2424
"npm ci",

0 commit comments

Comments
 (0)