-
Notifications
You must be signed in to change notification settings - Fork 22
46 lines (40 loc) · 1.13 KB
/
benchmark-cli.yml
File metadata and controls
46 lines (40 loc) · 1.13 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Benchmark CLI
on:
workflow_call:
jobs:
benchmark-cli:
name: Run CLI benchmarks
runs-on: ubuntu-22.04
permissions:
contents: read
id-token: write
env:
GOMAXPROCS: 8
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
submodules: true
fetch-depth: 1
- name: Setup Go
uses: ./.github/actions/setup-go
with:
go-version: '1.26.0'
cache-name: benchmark-cli
- name: Setup Node.js
uses: ./.github/actions/setup-node
- name: Build JS package
run: pnpm --filter @rslint/core run build
- name: Run CLI benchmarks
uses: CodSpeedHQ/action@d872884a306dd4853acf0f584f4b706cf0cc72a2
timeout-minutes: 30
env:
RAYON_NUM_THREADS: 1
CODSPEED_EXPERIMENTAL_FAIR_SCHED: true
GH_MATRIX: '${{ toJson(matrix) }}'
GH_STRATEGY: '${{ toJson(strategy) }}'
with:
mode: walltime
run: pnpm run bench:cli
runner-version: 4.13.0
go-runner-version: 1.1.0