mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
ci: install cargo-make
This commit is contained in:
parent
ddc2926c9b
commit
c407c38dc3
11
.github/workflows/rust_lint.yml
vendored
11
.github/workflows/rust_lint.yml
vendored
@ -3,8 +3,15 @@ name: RustLint
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
|
paths:
|
||||||
|
- 'frontend/rust-lib'
|
||||||
|
- 'shared-lib'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
|
paths:
|
||||||
|
- 'frontend/rust-lib'
|
||||||
|
- 'shared-lib'
|
||||||
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
@ -34,9 +41,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
override: true
|
override: true
|
||||||
|
- name: Install cargo-make
|
||||||
|
run: cargo install --force cargo-make
|
||||||
|
working-directory: frontend
|
||||||
- name: Install protobuf tool
|
- name: Install protobuf tool
|
||||||
run:
|
run:
|
||||||
cargo install --force cargo-make
|
|
||||||
cargo make flowy_dev
|
cargo make flowy_dev
|
||||||
echo PATH="$PATH":"$HOME/.pub-cache/bin" >> $GITHUB_PATH
|
echo PATH="$PATH":"$HOME/.pub-cache/bin" >> $GITHUB_PATH
|
||||||
working-directory: frontend
|
working-directory: frontend
|
||||||
|
14
.github/workflows/rust_test.yml
vendored
14
.github/workflows/rust_test.yml
vendored
@ -3,8 +3,14 @@ name: RustUnitTest
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
|
# paths:
|
||||||
|
# - 'frontend/rust-lib'
|
||||||
|
# - 'shared-lib'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
|
# paths:
|
||||||
|
# - 'frontend/rust-lib'
|
||||||
|
# - 'shared-lib'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
@ -22,15 +28,17 @@ jobs:
|
|||||||
source $HOME/.cargo/env
|
source $HOME/.cargo/env
|
||||||
rustup toolchain install stable
|
rustup toolchain install stable
|
||||||
rustup default stable
|
rustup default stable
|
||||||
|
- name: Install cargo-make
|
||||||
|
run: cargo install --force cargo-make
|
||||||
|
working-directory: frontend
|
||||||
- name: Install protobuf tool
|
- name: Install protobuf tool
|
||||||
run:
|
run:
|
||||||
cargo install --force cargo-make
|
|
||||||
cargo make flowy_dev
|
cargo make flowy_dev
|
||||||
echo PATH="$PATH":"$HOME/.pub-cache/bin" >> $GITHUB_PATH
|
echo PATH="$PATH":"$HOME/.pub-cache/bin" >> $GITHUB_PATH
|
||||||
working-directory: frontend
|
working-directory: frontend
|
||||||
- name: Frontend tests
|
- name: RustLib tests
|
||||||
run: cargo test
|
run: cargo test
|
||||||
working-directory: frontend/rust-lib
|
working-directory: frontend/rust-lib
|
||||||
- name: Shared-lib tests
|
- name: Sharedlib tests
|
||||||
run: cargo test
|
run: cargo test
|
||||||
working-directory: shared-lib
|
working-directory: shared-lib
|
||||||
|
Loading…
Reference in New Issue
Block a user