build(electron): use nx (#2942)

This commit is contained in:
Alex Yang
2023-06-30 16:10:35 +08:00
parent 5e4cd0f81d
commit 4757a95528
18 changed files with 134 additions and 148 deletions

View File

@@ -374,8 +374,8 @@ jobs:
run: yarn nx test @affine/monorepo
env:
NATIVE_TEST: 'true'
- name: Build layers
run: yarn workspace @affine/electron build
- name: Build AFFiNE Desktop
run: yarn nx build @affine/electron
- name: Download static resource artifact
uses: actions/download-artifact@v3
with:
@@ -384,13 +384,13 @@ jobs:
- name: Run desktop tests
if: ${{ matrix.spec.test && matrix.spec.os == 'ubuntu-latest' }}
run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- yarn workspace @affine/electron test
run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- yarn nx test @affine/electron
env:
COVERAGE: true
- name: Run desktop tests
if: ${{ matrix.spec.test && matrix.spec.os != 'ubuntu-latest' }}
run: yarn workspace @affine/electron test
run: yarn nx test @affine/electron
env:
COVERAGE: true

View File

@@ -125,7 +125,7 @@ jobs:
run: yarn nx run-many -t build -p plugin-infra infra
- name: Build layers
run: yarn workspace @affine/electron build
run: yarn nx build @affine/electron
- name: Signing By Apple Developer ID
if: ${{ matrix.spec.platform == 'darwin' }}

View File

@@ -126,8 +126,8 @@ jobs:
- name: Build Infra
run: yarn nx run-many -t build -p plugin-infra infra
- name: Build layers
run: yarn workspace @affine/electron build
- name: Build AFFiNE Desktop
run: yarn nx build @affine/electron
- name: Signing By Apple Developer ID
if: ${{ matrix.spec.platform == 'darwin' }}