From 7b47fb5c7f3330c2aa2f9c86a15948a3db5032b3 Mon Sep 17 00:00:00 2001 From: "AppFlowy.IO" <86001920+appflowy@users.noreply.github.com> Date: Tue, 23 Nov 2021 17:53:08 +0800 Subject: [PATCH] Update ci.yaml --- .github/workflows/ci.yaml | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 2cc9b1debf..7425e81ea1 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -4,7 +4,18 @@ on: branches: [main] pull_request: 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: runs-on: macOS-latest steps: @@ -12,16 +23,21 @@ jobs: uses: actions/checkout@v2 - name: Env install 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 run: | cd frontend cargo install --force cargo-make cargo install --force duckscript_cli 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 run: | cd frontend