aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/push-test.yml16
-rw-r--r--src-tauri/build.rs2
2 files changed, 17 insertions, 1 deletions
diff --git a/.github/workflows/push-test.yml b/.github/workflows/push-test.yml
index 25314e58..5e4597d8 100644
--- a/.github/workflows/push-test.yml
+++ b/.github/workflows/push-test.yml
@@ -14,6 +14,22 @@ jobs:
run: |
python3 scripts/check_version_numbers.py
+ # Ensure correct Rust code formatting
+ formatting:
+ name: format-check
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions-rs/toolchain@v1
+ with:
+ profile: minimal
+ toolchain: stable
+ override: true
+ - run: rustup component add rustfmt
+ - uses: actions-rs/cargo@v1
+ with:
+ command: fmt
+ args: --manifest-path src-tauri/Cargo.toml --all -- --check
test-tauri:
needs: ensure-same-version
diff --git a/src-tauri/build.rs b/src-tauri/build.rs
index 795b9b7c..d860e1e6 100644
--- a/src-tauri/build.rs
+++ b/src-tauri/build.rs
@@ -1,3 +1,3 @@
fn main() {
- tauri_build::build()
+ tauri_build::build()
}