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