build: fix nx.json (#2951)

This commit is contained in:
Alex Yang
2023-07-01 16:34:30 +08:00
committed by GitHub
parent 54a7eeda37
commit a9adb4dda2
7 changed files with 25 additions and 114 deletions

View File

@@ -153,8 +153,11 @@ jobs:
uses: ./.github/actions/setup-rust
with:
target: 'x86_64-unknown-linux-gnu'
- name: Build Storage
run: yarn build:storage
- name: Run server tests
run: yarn nx test:coverage @affine/server
run: yarn test:coverage
working-directory: apps/server
env:
CARGO_TARGET_DIR: '${{ github.workspace }}/target'
DATABASE_URL: postgresql://affine:affine@localhost:5432/affine
@@ -358,7 +361,7 @@ jobs:
run: yarn run build:plugins
- name: Build Desktop Layers
run: yarn nx build @affine/electron
run: yarn workspace @affine/electron build
- name: Download static resource artifact
uses: actions/download-artifact@v3
@@ -404,21 +407,14 @@ jobs:
name: Unit Test
runs-on: ubuntu-latest
environment: development
services:
octobase:
image: ghcr.io/toeverything/cloud-self-hosted:nightly-latest
ports:
- 3000:3000
env:
SIGN_KEY: 'test123'
RUST_LOG: 'debug'
JWST_DEV: '1'
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: ./.github/actions/setup-node
- name: Build Infra
run: yarn run build:infra
- name: Unit Test
run: yarn nx test:coverage @affine/monorepo

View File

@@ -130,7 +130,7 @@ jobs:
run: yarn run build:plugins
- name: Build Desktop Layers
run: yarn nx build @affine/electron
run: yarn workspace @affine/electron build
- name: Signing By Apple Developer ID
if: ${{ matrix.spec.platform == 'darwin' }}

View File

@@ -130,7 +130,7 @@ jobs:
run: yarn run build:plugins
- name: Build Desktop Layers
run: yarn nx build @affine/electron
run: yarn workspace @affine/electron build
- name: Signing By Apple Developer ID
if: ${{ matrix.spec.platform == 'darwin' }}