Skip to content

Commit 276e66e

Browse files
authored
Split PR workflow into multiple jobs (#11)
1 parent 8574d45 commit 276e66e

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

.github/workflows/pr.yaml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: PR
22
on: [pull_request]
33
jobs:
44
test:
5-
name: Build, bench and test
5+
name: Test
66
runs-on: ubuntu-latest
77
steps:
88
- name: checkout
@@ -18,10 +18,27 @@ jobs:
1818
run: pnpm install --frozen-lockfile
1919
- name: typecheck
2020
run: pnpm typecheck
21-
- name: bench
22-
run: pnpm bench
2321
- name: tests
2422
run: pnpm test
23+
24+
25+
bench:
26+
name: Benchmark
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: checkout
30+
uses: actions/checkout@v4
31+
- name: setup pnpm
32+
uses: pnpm/action-setup@v2
33+
- name: setup node
34+
uses: actions/setup-node@v3
35+
with:
36+
node-version: 20
37+
cache: 'pnpm'
38+
- name: install dependencies
39+
run: pnpm install --frozen-lockfile
40+
- name: bench
41+
run: pnpm bench
2542

2643
release_snapshot:
2744
if: ${{ github.event.pull_request.title != 'Upcoming Release Changes' }}

0 commit comments

Comments
 (0)