From 4d380f2e1859fde169388f2c89bb571eeb06e977 Mon Sep 17 00:00:00 2001 From: Oskar Manhart <52569953+oskardotglobal@users.noreply.github.com> Date: Thu, 27 Jul 2023 11:54:02 +0200 Subject: [PATCH 1/3] fix: skip clippy and rust-check for ci pre-commit.ci has no network connection per design, so now pre-commit ci only enforces styling --- .pre-commit-config.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8a28bb1..23a7ce7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,3 +1,6 @@ +ci: + skip: [clippy, cargo-check] + repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.4.0 From ce607143e6066f78d45976ba8f845149588b64e2 Mon Sep 17 00:00:00 2001 From: Oskar Manhart <52569953+oskardotglobal@users.noreply.github.com> Date: Thu, 27 Jul 2023 11:54:18 +0200 Subject: [PATCH 2/3] rm: remove rust-check.yml Other workflows already run the same checks, so it's unnecessary --- .github/workflows/rust-check.yml | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 .github/workflows/rust-check.yml diff --git a/.github/workflows/rust-check.yml b/.github/workflows/rust-check.yml deleted file mode 100644 index f3d3a03..0000000 --- a/.github/workflows/rust-check.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Rust Check - -on: - push: - branches: [ "rewrite" ] - pull_request: - branches: [ "rewrite" ] - -env: - CARGO_TERM_COLOR: always - -jobs: - format: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - uses: mirlahiji/rust-action@master - with: - args: cargo fmt -- --check && cargo clippy -- -Dwarnings && cargo test From 6c071a35c5e32d5c006dc5b24e6b615d5869f0ec Mon Sep 17 00:00:00 2001 From: Oskar Manhart <52569953+oskardotglobal@users.noreply.github.com> Date: Thu, 27 Jul 2023 11:54:43 +0200 Subject: [PATCH 3/3] fix: enable env colors for rust-clippy.yml --- .github/workflows/rust-clippy.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/rust-clippy.yml b/.github/workflows/rust-clippy.yml index 33a01d1..b77be5c 100644 --- a/.github/workflows/rust-clippy.yml +++ b/.github/workflows/rust-clippy.yml @@ -18,6 +18,9 @@ on: schedule: - cron: '23 2 * * 5' +env: + CARGO_TERM_COLOR: always + jobs: rust-clippy-analyze: name: Run rust-clippy analyzing