diff --git a/.github/workflows/rust_code_compile_check.yml b/.github/workflows/rust_code_check.yml similarity index 88% rename from .github/workflows/rust_code_compile_check.yml rename to .github/workflows/rust_code_check.yml index bd8c72a2..45eecd5e 100644 --- a/.github/workflows/rust_code_compile_check.yml +++ b/.github/workflows/rust_code_check.yml @@ -1,4 +1,4 @@ -name: Rust Code Compile Check +name: Rust Code Check on: pull_request: @@ -7,7 +7,7 @@ on: - 'src-tauri/**' jobs: - compile-check: + check: strategy: matrix: platform: [ubuntu-latest, windows-latest, macos-latest] @@ -37,6 +37,13 @@ jobs: shell: bash run: cargo add --path ../pizza/lib/engine --features query_string_parser,persistence + - name: Format check + working-directory: src-tauri + shell: bash + run: | + rustup component add rustfmt + cargo fmt --all --check + - name: Check compilation (Without Pizza engine enabled) working-directory: ./src-tauri run: cargo check