mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
149c2a2725
* chore: rename flowy_dev name * chore: rename tasks Co-authored-by: nathan <nathan@appflowy.io>
62 lines
1.3 KiB
YAML
62 lines
1.3 KiB
YAML
name: Rust lint
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "main"
|
|
- "release/*"
|
|
paths:
|
|
- "frontend/rust-lib/**"
|
|
- "shared-lib/**"
|
|
|
|
pull_request:
|
|
branches:
|
|
- "main"
|
|
- "release/*"
|
|
paths:
|
|
- "frontend/rust-lib/**"
|
|
- "shared-lib/**"
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
rust-fmt:
|
|
name: Rustfmt
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: 'stable-2022-04-07'
|
|
override: true
|
|
- uses: subosito/flutter-action@v1
|
|
with:
|
|
flutter-version: '3.0.5'
|
|
channel: "stable"
|
|
|
|
- name: Rust Deps
|
|
working-directory: frontend
|
|
run: |
|
|
cargo install cargo-make
|
|
cargo make appflowy-deps-tools
|
|
|
|
- name: Build FlowySDK
|
|
working-directory: frontend
|
|
run: |
|
|
cargo make --profile development-linux-x86_64 appflowy-sdk-dev
|
|
|
|
- run: rustup component add rustfmt
|
|
working-directory: frontend/rust-lib
|
|
- name: rustfmt
|
|
run: cargo fmt --all -- --check
|
|
working-directory: frontend/rust-lib/
|
|
|
|
|
|
- run: rustup component add clippy
|
|
working-directory: frontend/rust-lib
|
|
- name: clippy
|
|
run: cargo clippy --no-default-features
|
|
working-directory: frontend/rust-lib
|
|
|