From 675660e69b4ba9b13095756ef02f980fa7d42a26 Mon Sep 17 00:00:00 2001 From: Pavel Kisialiou Date: Wed, 16 Oct 2024 14:56:36 +0400 Subject: [PATCH] Add basic CI --- .github/workflows/lints.yaml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/lints.yaml diff --git a/.github/workflows/lints.yaml b/.github/workflows/lints.yaml new file mode 100644 index 00000000..a2a069c5 --- /dev/null +++ b/.github/workflows/lints.yaml @@ -0,0 +1,31 @@ +name: Rust testing + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + clippy: + runs-on: ubuntu-latest + strategy: + matrix: + component: [near, omni-relayer] + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: 1.79.0 + components: clippy + + - name: Run Clippy + run: | + cargo clippy --manifest-path ./${{ matrix.component }}/Cargo.toml -- \ + -D warnings \ + -D clippy::pedantic \ + -A clippy::missing_errors_doc \ + -A clippy::must_use_candidate