diff options
Diffstat (limited to '.github/workflows/ci.yml')
| -rw-r--r-- | .github/workflows/ci.yml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..fa1cceb5 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,27 @@ +on: + push: + pull_request: + types: [opened, reopened] + +env: + CARGO_INCREMENTAL: 0 # required so ci doesn't run out of space + CARGO_TERM_COLOR: always + +name: Cargo clippy & test +jobs: + clippy_and_test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Install Nightly + run: rustup update nightly && rustup default nightly && rustup component add clippy + + - name: Cache dependencies + uses: Swatinem/rust-cache@v2 + + - name: Clippy + run: cargo clippy --all-features + + - name: Test + run: cargo test |
