mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-24 05:22:12 +03:00
ci: build storage
This commit is contained in:
parent
ff23561e21
commit
b6200ab56d
33
.github/workflows/build.yml
vendored
33
.github/workflows/build.yml
vendored
@ -134,10 +134,33 @@ jobs:
|
|||||||
path: ./apps/core/dist
|
path: ./apps/core/dist
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
|
build-storage:
|
||||||
|
name: Build Storage
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
environment: development
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Setup Node.js
|
||||||
|
uses: ./.github/actions/setup-node
|
||||||
|
- name: Setup Rust
|
||||||
|
uses: ./.github/actions/setup-rust
|
||||||
|
with:
|
||||||
|
target: 'x86_64-unknown-linux-gnu'
|
||||||
|
- name: Build Storage
|
||||||
|
run: yarn build:storage
|
||||||
|
- name: Upload storage.node
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: storage.node
|
||||||
|
path: ./packages/storage/storage.node
|
||||||
|
if-no-files-found: error
|
||||||
|
|
||||||
server-test:
|
server-test:
|
||||||
name: Server Test
|
name: Server Test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
environment: development
|
environment: development
|
||||||
|
needs: build-storage
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres
|
image: postgres
|
||||||
@ -173,12 +196,11 @@ jobs:
|
|||||||
working-directory: apps/server
|
working-directory: apps/server
|
||||||
env:
|
env:
|
||||||
DATABASE_URL: postgresql://affine:affine@localhost:5432/affine
|
DATABASE_URL: postgresql://affine:affine@localhost:5432/affine
|
||||||
- name: Setup Rust
|
- name: Download storage.node
|
||||||
uses: ./.github/actions/setup-rust
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
target: 'x86_64-unknown-linux-gnu'
|
name: storage.node
|
||||||
- name: Build Storage
|
path: ./apps/server
|
||||||
run: yarn build:storage
|
|
||||||
- name: Run server tests
|
- name: Run server tests
|
||||||
run: yarn test:coverage
|
run: yarn test:coverage
|
||||||
working-directory: apps/server
|
working-directory: apps/server
|
||||||
@ -506,6 +528,7 @@ jobs:
|
|||||||
needs:
|
needs:
|
||||||
- build-server
|
- build-server
|
||||||
- build-core
|
- build-core
|
||||||
|
- build-storage
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Download core artifact
|
- name: Download core artifact
|
||||||
|
Loading…
Reference in New Issue
Block a user