From 4a28dc80315ed9e0271d9edcd1a7b10638f739eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ceyhun=20=C5=9Een?= Date: Fri, 9 Aug 2024 14:35:58 +0300 Subject: [PATCH] workflow: Add new code check for CI. --- .github/workflows/code_checks.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/code_checks.yml diff --git a/.github/workflows/code_checks.yml b/.github/workflows/code_checks.yml new file mode 100644 index 000000000..bde145418 --- /dev/null +++ b/.github/workflows/code_checks.yml @@ -0,0 +1,25 @@ +name: Code Checks + +on: [push] + +env: + CARGO_TERM_COLOR: always + +jobs: + formatting: + name: Check formatting + runs-on: ubicloud-standard-4 + + steps: + - uses: actions/checkout@v4 + - name: Run Cargo fmt + run: cargo fmt --check + + linting: + name: Check linting + runs-on: ubicloud-standard-4 + + steps: + - uses: actions/checkout@v4 + - name: Run Cargo clippy + run: cargo clippy --no-deps -- -Dwarnings