diff options
author | GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> | 2023-01-29 17:33:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-29 17:33:30 +0100 |
commit | 637d39e37508f046d9dce012b2fed15dff14364f (patch) | |
tree | 939584d92444f3aee6fd7f379388b2ac1b1ceadc /.github | |
parent | 31b32c725ce4f47a6726cb0d8ef5f21ec6030580 (diff) | |
download | FlightCore-637d39e37508f046d9dce012b2fed15dff14364f.tar.gz FlightCore-637d39e37508f046d9dce012b2fed15dff14364f.zip |
feat: Add Rust code format check to CI (#146)
* feat: Add Rust code format check to CI
* fix: Set path correctly
* chore: Fix formatting
* refactor: Run format check as separate step
* refactor: Rename stage
Co-authored-by: Rémy Raes <contact@remyraes.com>
---------
Co-authored-by: Rémy Raes <contact@remyraes.com>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/push-test.yml | 16 |
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 |