mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
Update ci.yaml
This commit is contained in:
parent
0d28267386
commit
7b47fb5c7f
26
.github/workflows/ci.yaml
vendored
26
.github/workflows/ci.yaml
vendored
@ -4,7 +4,18 @@ on:
|
|||||||
branches: [main]
|
branches: [main]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
jobs:
|
jobs:
|
||||||
|
sdk-tests:
|
||||||
|
runs-on: macOS-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Env install
|
||||||
|
run: cd frontend && make install_rust
|
||||||
|
- name: Frontend tests
|
||||||
|
run: cd frontend/rust-lib && cargo test
|
||||||
|
- name: Shared-lib tests
|
||||||
|
run: cd shared-lib && cargo test
|
||||||
build-macos:
|
build-macos:
|
||||||
runs-on: macOS-latest
|
runs-on: macOS-latest
|
||||||
steps:
|
steps:
|
||||||
@ -12,16 +23,21 @@ jobs:
|
|||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Env install
|
- name: Env install
|
||||||
run: cd frontend && make install_rust
|
run: cd frontend && make install_rust
|
||||||
|
- name: Flutter
|
||||||
|
run: |
|
||||||
|
git clone --depth 1 -b dev https://github.com/flutter/flutter.git
|
||||||
|
cd flutter
|
||||||
|
echo `pwd`"/bin" >> $GITHUB_PATH
|
||||||
|
export PATH="$PATH:`pwd`/bin"
|
||||||
|
flutter channel dev
|
||||||
|
flutter config --enable-macos-desktop
|
||||||
|
flutter doctor
|
||||||
- name: Deps
|
- name: Deps
|
||||||
run: |
|
run: |
|
||||||
cd frontend
|
cd frontend
|
||||||
cargo install --force cargo-make
|
cargo install --force cargo-make
|
||||||
cargo install --force duckscript_cli
|
cargo install --force duckscript_cli
|
||||||
cargo make flowy_dev
|
cargo make flowy_dev
|
||||||
- name: Run frontend tests
|
|
||||||
run: cd frontend/rust-lib && cargo test
|
|
||||||
- name: Run shared-lib tests
|
|
||||||
run: cd shared-lib && cargo test
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
cd frontend
|
cd frontend
|
||||||
|
Loading…
x
Reference in New Issue
Block a user