aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/push-test.yml16
1 files changed, 16 insertions, 0 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