From c407c38dc3dfd58e81460099c03d050bc20731de Mon Sep 17 00:00:00 2001 From: appflowy Date: Wed, 9 Feb 2022 21:13:51 +0800 Subject: [PATCH] ci: install cargo-make --- .github/workflows/rust_lint.yml | 11 ++++++++++- .github/workflows/rust_test.yml | 14 +++++++++++--- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/.github/workflows/rust_lint.yml b/.github/workflows/rust_lint.yml index 154b339971..1cf3175c76 100644 --- a/.github/workflows/rust_lint.yml +++ b/.github/workflows/rust_lint.yml @@ -3,8 +3,15 @@ name: RustLint on: push: branches: [ main ] + paths: + - 'frontend/rust-lib' + - 'shared-lib' pull_request: branches: [ main ] + paths: + - 'frontend/rust-lib' + - 'shared-lib' + env: CARGO_TERM_COLOR: always @@ -34,9 +41,11 @@ jobs: with: toolchain: stable override: true + - name: Install cargo-make + run: cargo install --force cargo-make + working-directory: frontend - name: Install protobuf tool run: - cargo install --force cargo-make cargo make flowy_dev echo PATH="$PATH":"$HOME/.pub-cache/bin" >> $GITHUB_PATH working-directory: frontend diff --git a/.github/workflows/rust_test.yml b/.github/workflows/rust_test.yml index dc1665b62b..9fb883565e 100644 --- a/.github/workflows/rust_test.yml +++ b/.github/workflows/rust_test.yml @@ -3,8 +3,14 @@ name: RustUnitTest on: push: branches: [ main ] +# paths: +# - 'frontend/rust-lib' +# - 'shared-lib' pull_request: branches: [ main ] +# paths: +# - 'frontend/rust-lib' +# - 'shared-lib' env: CARGO_TERM_COLOR: always @@ -22,15 +28,17 @@ jobs: source $HOME/.cargo/env rustup toolchain install stable rustup default stable + - name: Install cargo-make + run: cargo install --force cargo-make + working-directory: frontend - name: Install protobuf tool run: - cargo install --force cargo-make cargo make flowy_dev echo PATH="$PATH":"$HOME/.pub-cache/bin" >> $GITHUB_PATH working-directory: frontend - - name: Frontend tests + - name: RustLib tests run: cargo test working-directory: frontend/rust-lib - - name: Shared-lib tests + - name: Sharedlib tests run: cargo test working-directory: shared-lib