| 1 | name: CI |
| 2 | |
| 3 | on: [push, pull_request] |
| 4 | |
| 5 | jobs: |
| 6 | check: |
| 7 | name: Check on v1.41 |
| 8 | runs-on: ubuntu-latest |
| 9 | steps: |
| 10 | - name: Checkout sources |
| 11 | uses: actions/checkout@v4 |
| 12 | |
| 13 | - name: Install stable toolchain |
| 14 | uses: dtolnay/rust-toolchain@stable |
| 15 | with: |
| 16 | toolchain: 1.41.1 |
| 17 | |
| 18 | - name: Run cargo check |
| 19 | run: cargo check --all-features |
| 20 | |
| 21 | test: |
| 22 | name: Test on stable |
| 23 | runs-on: ubuntu-latest |
| 24 | steps: |
| 25 | - name: Checkout sources |
| 26 | uses: actions/checkout@v4 |
| 27 | |
| 28 | - name: Install stable toolchain |
| 29 | uses: dtolnay/rust-toolchain@stable |
| 30 | with: |
| 31 | toolchain: stable |
| 32 | components: rustfmt, clippy |
| 33 | |
| 34 | - name: Run cargo fmt |
| 35 | run: cargo fmt --all -- --check |
| 36 | |
| 37 | - name: Run cargo clippy |
| 38 | run: cargo clippy --all-features -- -D warnings |
| 39 | |
| 40 | - name: Run cargo test |
| 41 | run: cargo test --all-features |