From 67c19dcc6990d7162779e4aa738385b8fcd3384e Mon Sep 17 00:00:00 2001 From: CodeMaster4711 Date: Mon, 3 Nov 2025 13:24:04 +0100 Subject: [PATCH] feat: added rust linter --- .github/workflows/rust-linting.yml | 37 ++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/rust-linting.yml diff --git a/.github/workflows/rust-linting.yml b/.github/workflows/rust-linting.yml new file mode 100644 index 0000000..e531762 --- /dev/null +++ b/.github/workflows/rust-linting.yml @@ -0,0 +1,37 @@ +name: Lint + +on: + push: + branches: + - main + - feat/ci-pipeline-4 + pull_request: + branches: + - main + +permissions: + checks: write + contents: write + +jobs: + run-linters: + name: Run Rust Linters + runs-on: ubuntu-latest + steps: + - name: Check out Git repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Install Rust Toolchain + uses: dtolnay/rust-toolchain@stable + with: + components: clippy, rustfmt + + - name: Run linters + uses: wearerequired/lint-action@v2 + with: + auto_fix: true + clippy: true + rustfmt: true + clippy_auto_fix: false