mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
231fd38298
* chore: upgrade appflowy_editor_plugins and flowy_infra * feat(appflowy_flutter): upgrade dependence and delete unused import files * fix(appflowy_flutter): fix SvgPicture upgrade issue update color to colorFilter: apply mask color when the color is not null * feat(appflowy_editor): updateflutter_svg version * chore: flutter analyze * chore: update to 3.7.5 in github action * chore: update to 3.7.5 in github action(integration test) * chore: update appflowy_editor to 0.1.2 * chore: delete appflowy_editor_test.yml under appflowy * chore: update the flutter version in github action * docs: update flutter badge image * chore: update flutter version in scripts * chore: update appflowy editor to the latest release * chore: fix flutter analyze * chore: update integration_test.yml --------- Co-authored-by: Lucas.Xu <lucas.xu@appflowy.io> Co-authored-by: Nathan.fooo <86001920+appflowy@users.noreply.github.com>
63 lines
1.6 KiB
YAML
63 lines
1.6 KiB
YAML
name: Rust code coverage
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "main"
|
|
- "release/*"
|
|
paths:
|
|
- "frontend/rust-lib/**"
|
|
- "shared-lib/**"
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
FLUTTER_VERSION: "3.7.5"
|
|
RUST_TOOLCHAIN: "1.65"
|
|
|
|
jobs:
|
|
tests:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout source code
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install Rust toolchain
|
|
id: rust_toolchain
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: ${{ env.RUST_TOOLCHAIN }}
|
|
target: ${{ matrix.job.target }}
|
|
override: true
|
|
profile: minimal
|
|
|
|
- name: Install flutter
|
|
id: flutter
|
|
uses: subosito/flutter-action@v2
|
|
with:
|
|
channel: "stable"
|
|
flutter-version: ${{ env.FLUTTER_VERSION }}
|
|
cache: true
|
|
|
|
- name: Install prerequisites
|
|
working-directory: frontend
|
|
run: |
|
|
cargo install --force cargo-make
|
|
cargo install --force duckscript_cli
|
|
|
|
- uses: Swatinem/rust-cache@v2
|
|
with:
|
|
prefix-key: ${{ matrix.job.os }}
|
|
|
|
- name: Install code-coverage tools
|
|
working-directory: frontend
|
|
run: |
|
|
sudo wget -qO /etc/apt/trusted.gpg.d/dart_linux_signing_key.asc https://dl-ssl.google.com/linux/linux_signing_key.pub
|
|
sudo apt-get update
|
|
sudo apt-get install keybinder-3.0
|
|
cargo install grcov
|
|
rustup component add llvm-tools-preview
|
|
|
|
- name: Run tests
|
|
working-directory: frontend
|
|
run: cargo make rust_unit_test_with_coverage
|