mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
43 lines
1.0 KiB
YAML
43 lines
1.0 KiB
YAML
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
|
|
|
|
jobs:
|
|
tests:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
- name: Install Rust
|
|
run: |
|
|
curl \
|
|
--proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
|
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: brew install protobuf
|
|
working-directory: frontend
|
|
- name: RustLib tests
|
|
run: cargo test --no-default-features
|
|
working-directory: frontend/rust-lib
|
|
- name: Sharedlib tests
|
|
run: cargo test --no-default-features
|
|
working-directory: shared-lib
|