From f74e958d4bbe0f54f0680565839dcdc9958c0626 Mon Sep 17 00:00:00 2001 From: Daniel Collin Date: Sun, 12 May 2024 12:25:29 +0200 Subject: [PATCH] Updated fmt check --- .github/workflows/ci.yml | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 35e31bc..d12102d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,17 +3,23 @@ on: [push, pull_request] name: CI jobs: - lint: - name: Lint + fmt: runs-on: ubuntu-latest + # Steps represent a sequence of tasks that will be executed as part of the job. steps: - # make sure all code has been formatted with rustfmt - - run: rustup component add rustfmt - - name: check rustfmt - uses: actions-rs/cargo@v1 + - name: Checkout Repository + uses: actions/checkout@v3 + + - name: Setup Rust + uses: actions-rs/toolchain@v1 with: - command: fmt - args: -- --check --color always + toolchain: stable + profile: minimal + components: rustfmt + override: true + + - name: Check Format + run: cargo fmt -- --check build_and_test: name: Test