Skip to content

Commit d4ca19d

Browse files
sarahdayanclaude
andcommitted
perf: parallelize lint and test jobs in CI
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 1f2a90c commit d4ca19d

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- '**'
1010

1111
jobs:
12-
test:
12+
lint:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v4
@@ -25,11 +25,24 @@ jobs:
2525
- name: Lint
2626
run: yarn lint
2727

28+
test:
29+
runs-on: ubuntu-latest
30+
steps:
31+
- uses: actions/checkout@v4
32+
33+
- uses: actions/setup-node@v4
34+
with:
35+
node-version: '20'
36+
cache: 'yarn'
37+
38+
- name: Install dependencies
39+
run: yarn install
40+
2841
- name: Unit Tests
2942
run: yarn test:ci
3043

3144
release:
32-
needs: test
45+
needs: [lint, test]
3346
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
3447
runs-on: ubuntu-latest
3548
steps:

0 commit comments

Comments
 (0)