From 637d39e37508f046d9dce012b2fed15dff14364f Mon Sep 17 00:00:00 2001 From: GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> Date: Sun, 29 Jan 2023 17:33:30 +0100 Subject: feat: Add Rust code format check to CI (#146) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 --------- Co-authored-by: Rémy Raes --- .github/workflows/push-test.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to '.github/workflows') 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 -- cgit v1.2.3