-
Notifications
You must be signed in to change notification settings - Fork 8
41 lines (34 loc) · 930 Bytes
/
test.yaml
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
39
name: Test
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/[email protected]
with:
components: clippy,rustfmt
- run: sudo apt-get install libsctp1 libsctp-dev lksctp-tools
- name: Build examples
run: cargo build --verbose --examples --all
- name: Run tests
run: cargo test --verbose --all
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/[email protected]
with:
components: clippy,rustfmt
- name: Check formatting
run: cargo fmt --check --all
- name: Run Cargo check
run: cargo check --all --all-features --all-targets
- name: Run Clippy linter
run: cargo clippy --all --all-features --all-targets -- -D clippy::all