Skip to content

AI-native design editor. Open-source Figma alternative.

ci: share package builds with unit shards

Danila Poyarkovf5afb2e6716f
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 23bc3ba1f..131f9755b 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -28,8 +28,17 @@ jobs:
- name: Lint, typecheck, architecture, package, and tooling checks
run: bun run check
+ - name: Upload package builds
+ uses: actions/upload-artifact@v4
+ with:
+ name: package-builds
+ path: packages/*/dist
+ if-no-files-found: error
+ retention-days: 1
+
unit-tests:
runs-on: ubuntu-latest
+ needs: quality
strategy:
fail-fast: true
matrix:
@@ -42,6 +51,12 @@ jobs:
with:
lfs: 'true'
+ - name: Download package builds
+ uses: actions/download-artifact@v4
+ with:
+ name: package-builds
+ path: .
+
- name: Run quick unit test shard
shell: bash
run: |
diff --git a/.github/workflows/heavy-tests.yml b/.github/workflows/heavy-tests.yml
index 7ddcaec4b..b56063d8e 100644
--- a/.github/workflows/heavy-tests.yml
+++ b/.github/workflows/heavy-tests.yml
@@ -20,6 +20,9 @@ jobs:
with:
lfs: 'true'
+ - name: Build packages
+ run: bun run build:packages
+
- name: Heavy fixture unit tests
shell: bash
run: |