aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yml
blob: fa1cceb58278cc16b88676f4aee3f31c5904a568 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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