Skip to content

Commit

Permalink
Split PR workflow into multiple jobs (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilkisiela authored Sep 28, 2023
1 parent 8574d45 commit 276e66e
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: PR
on: [pull_request]
jobs:
test:
name: Build, bench and test
name: Test
runs-on: ubuntu-latest
steps:
- name: checkout
Expand All @@ -18,10 +18,27 @@ jobs:
run: pnpm install --frozen-lockfile
- name: typecheck
run: pnpm typecheck
- name: bench
run: pnpm bench
- name: tests
run: pnpm test


bench:
name: Benchmark
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: setup pnpm
uses: pnpm/action-setup@v2
- name: setup node
uses: actions/setup-node@v3
with:
node-version: 20
cache: 'pnpm'
- name: install dependencies
run: pnpm install --frozen-lockfile
- name: bench
run: pnpm bench

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

0 comments on commit 276e66e

Please sign in to comment.