forked from computesdk/benchmarks
-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (58 loc) · 2.04 KB
/
Copy pathci.yml
File metadata and controls
72 lines (58 loc) · 2.04 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: CI
on:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
ci:
name: CI
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '24'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --ignore-scripts
- name: Build packages
# The root typecheck consumes the built dist output, so build
# @benchsdk/client, @benchsdk/runner, and create-bench before running
# typecheck.
run: |
pnpm --filter @benchsdk/client run build
pnpm --filter @benchsdk/runner run build
pnpm --filter create-bench run build
- name: Typecheck
run: pnpm typecheck
- name: Test
run: pnpm --filter @benchsdk/client run test
- name: Test @benchsdk/runner
run: pnpm --filter @benchsdk/runner run test
- name: Test create-bench
run: pnpm --filter create-bench run test
actionlint:
name: Lint workflows
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
# Validates all .github/workflows/*.yml for syntax and expression
# errors. The self-hosted runner label is declared in
# .github/actionlint.yaml. The empty-string choice-input defaults
# (used as "run all / none" sentinels) are accepted by GitHub Actions
# but flagged by actionlint's stricter parser, so that one rule is
# ignored here. Shellcheck integration is disabled (-shellcheck=)
# because the bench run: scripts rely on intentional word-splitting of
# multi-flag variables (e.g. $SEQ_ARGS, $PARALLEL_ARGS, $PROVIDER_FLAG).
- name: actionlint
uses: docker://rhysd/actionlint:1.7.12
with:
args: -color -ignore "string should not be empty" -shellcheck=