From c5cdb57838c15a52af1f520f8bdf0137dcfa5428 Mon Sep 17 00:00:00 2001 From: Flori Weber Date: Mon, 19 Jun 2023 16:21:53 +0200 Subject: [PATCH] Rename build_and_test, add clippy actions --- .github/workflows/{rust.yml => build_and_test.yml} | 4 ++-- .github/workflows/clippy.yml | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) rename .github/workflows/{rust.yml => build_and_test.yml} (96%) create mode 100644 .github/workflows/clippy.yml diff --git a/.github/workflows/rust.yml b/.github/workflows/build_and_test.yml similarity index 96% rename from .github/workflows/rust.yml rename to .github/workflows/build_and_test.yml index 9b39ddf..4e98355 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/build_and_test.yml @@ -1,4 +1,4 @@ -name: Rust +name: Build and Test on: push: @@ -10,7 +10,7 @@ env: CARGO_TERM_COLOR: always jobs: - build_and_test: + rust: runs-on: ubuntu-latest diff --git a/.github/workflows/clippy.yml b/.github/workflows/clippy.yml new file mode 100644 index 0000000..d190465 --- /dev/null +++ b/.github/workflows/clippy.yml @@ -0,0 +1,14 @@ +on: push +name: Clippy check + +# Make sure CI fails on all warnings, including Clippy lints +env: + RUSTFLAGS: "-Dwarnings" + +jobs: + clippy_check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Run Clippy + run: cargo clippy --all-targets --all-features \ No newline at end of file