From 4640052ee416051a31149c500a3b2b3a47542391 Mon Sep 17 00:00:00 2001 From: Daniel Harvey Date: Fri, 20 Dec 2024 16:53:18 +0000 Subject: [PATCH] Check clippy in CI --- .github/workflows/cargo-clippy.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/cargo-clippy.yaml diff --git a/.github/workflows/cargo-clippy.yaml b/.github/workflows/cargo-clippy.yaml new file mode 100644 index 00000000..2e296923 --- /dev/null +++ b/.github/workflows/cargo-clippy.yaml @@ -0,0 +1,24 @@ +name: BigQuery clippy check + +on: + push: + +jobs: + cargo-fmt: + name: check lints with clippy + runs-on: ubuntu-latest + env: + CARGO_NET_GIT_FETCH_WITH_CLI: "true" + RUSTFLAGS: "-D warnings" # fail on warnings + steps: + - uses: actions/checkout@v4 + + - name: install tools + run: | + rustup show + + - uses: Swatinem/rust-cache@v2 + + - name: check formatting + run: | + cargo clippy