Skip to content

Commit 8609131

Browse files
committed
fix(ci): build packages before other tasks
1 parent 20c2767 commit 8609131

File tree

2 files changed

+7
-19
lines changed

2 files changed

+7
-19
lines changed

.github/actions/setup/action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,7 @@ runs:
3838
**/node_modules
3939
pnpm-lock.yaml
4040
key: ${{ steps.pnpm-cache.outputs.cache-primary-key }}
41+
42+
- name: Build packages
43+
run: pnpm run build
44+
shell: bash

.github/workflows/ci-cd.yml

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ on:
1313
concurrency: ${{ github.workflow }}-${{ github.ref }}
1414

1515
jobs:
16-
build-packages-and-lint:
17-
name: Build packages and lint
16+
build-lint-test:
17+
name: Build packages, lint & run tests
1818
runs-on: ubuntu-latest
1919
steps:
2020
- name: Checkout
@@ -25,35 +25,19 @@ jobs:
2525
- name: Setup
2626
uses: ./.github/actions/setup
2727

28-
- name: Build packages
29-
run: pnpm run build
30-
3128
- name: Lint files
3229
run: pnpm run lint
3330

3431
- name: Typecheck files
3532
run: pnpm run typecheck
3633

37-
test:
38-
name: Run tests
39-
runs-on: ubuntu-latest
40-
needs: build-packages-and-lint
41-
steps:
42-
- name: Checkout
43-
uses: actions/checkout@v4
44-
with:
45-
submodules: 'true'
46-
47-
- name: Setup
48-
uses: ./.github/actions/setup
49-
5034
- name: Run unit tests
5135
run: pnpm run test --maxWorkers=2 --coverage
5236

5337
build-docs:
5438
name: Build docs
5539
runs-on: ubuntu-latest
56-
needs: build-packages-and-lint
40+
needs: build-lint-test
5741
steps:
5842
- name: Checkout
5943
uses: actions/checkout@v4

0 commit comments

Comments
 (0)