Skip to content

Commit

Permalink
Add basic CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kisialiou committed Oct 16, 2024
1 parent 1b88b4e commit 675660e
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/lints.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 675660e

Please sign in to comment.