-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (32 loc) · 988 Bytes
/
benchmark.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Benchmark
on:
workflow_dispatch: {}
schedule:
- cron: '0 0 * * 0'
defaults:
run:
shell: bash -euxo pipefail {0}
jobs:
benchmark:
name: Benchmark
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Setup pnpm
uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0
with:
package_json_file: package.json
- name: Setup Node.js
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version-file: .node-version
cache: pnpm
cache-dependency-path: benchmarks/pnpm-lock.yaml
- working-directory: ./benchmarks
run: pnpm install
- working-directory: ./benchmarks
env:
PLOTLY_USERNAME: ${{ secrets.PLOTLY_USERNAME }}
PLOTLY_APIKEY: ${{ secrets.PLOTLY_APIKEY }}
run: pnpm run benchmark