chore: fix historical user open issue (#3106) #100
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust-CI | |
on: | |
push: | |
branches: | |
- "main" | |
- "develop" | |
- "release/*" | |
paths: | |
- "frontend/rust-lib/**" | |
- "shared-lib/**" | |
pull_request: | |
branches: | |
- "main" | |
- "develop" | |
- "release/*" | |
paths: | |
- "frontend/rust-lib/**" | |
- "shared-lib/**" | |
env: | |
CARGO_TERM_COLOR: always | |
RUST_TOOLCHAIN: "1.70" | |
jobs: | |
test-on-ubuntu: | |
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 }} | |
override: true | |
components: rustfmt, clippy | |
profile: minimal | |
- 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: 'ubuntu-latest' | |
workspaces: | | |
frontend/rust-lib | |
- name: Run rust-lib tests | |
working-directory: frontend/rust-lib | |
run: RUST_LOG=info RUST_BACKTRACE=1 cargo test --no-default-features --features="rev-sqlite" | |
- name: rustfmt rust-lib | |
run: cargo fmt --all -- --check | |
working-directory: frontend/rust-lib/ | |
- name: clippy rust-lib | |
run: cargo clippy --features="rev-sqlite" | |
working-directory: frontend/rust-lib |