From 9ccaa7fa21b347b7ce60b9aecff9fbbe25f416a9 Mon Sep 17 00:00:00 2001 From: Daniel Gerlag <daniel@gerlag.ca> Date: Fri, 12 Jul 2024 09:54:30 -0700 Subject: [PATCH 1/2] add cargo fmt check --- .github/workflows/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ec208af..ad6e117 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -57,6 +57,7 @@ jobs: env: REDIS_URL: redis://localhost:6379 run: | + cargo fmt -- --check cargo install junitify cargo test -- --format=json -Z unstable-options --report-time | junitify --ignore-parse-errors --out ./test-results ls From 5780688a5c1653a3a58dcd83cdfd1b6de9d46876 Mon Sep 17 00:00:00 2001 From: Daniel Gerlag <daniel@gerlag.ca> Date: Fri, 12 Jul 2024 12:19:03 -0700 Subject: [PATCH 2/2] install tool chain for fmt --- .github/workflows/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ad6e117..9050101 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -57,6 +57,7 @@ jobs: env: REDIS_URL: redis://localhost:6379 run: | + rustup component add --toolchain nightly-x86_64-unknown-linux-gnu rustfmt cargo fmt -- --check cargo install junitify cargo test -- --format=json -Z unstable-options --report-time | junitify --ignore-parse-errors --out ./test-results