-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 856 Bytes
/
ci.yml
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
28
29
30
31
32
33
34
35
36
37
38
name: "CI"
on:
workflow_dispatch:
pull_request:
push:
jobs:
unit-test:
name: Unit test using ${{matrix.rust}}
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
rust: [ 1.77, nightly, beta, stable ]
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{matrix.rust}}
- name: Run unit tests
run: |
cargo test --release
lint:
name: Lint
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: clippy
- name: Run lint
run: cargo clippy --all-targets --all-features