-
-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (40 loc) · 1.35 KB
/
checks.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
39
40
41
42
43
name: Checks
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
jobs:
test:
name: Test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v2
- name: All targets checks
run: cargo check --workspace --all-targets
- name: Clippy checks
run: cargo clippy --workspace --all-targets --all-features -- -D warnings -W clippy::all
- name: Documentation tests
run: cargo test --workspace --doc
- name: All features for all targets tests
run: cargo test --workspace --all-targets --all-features
ubuntu-test:
name: Test on ubuntu-latest
runs-on: ubuntu-latest
steps:
- name: Install system dependencies
run: sudo apt-get update && sudo apt-get install -y libatk1.0-dev librust-atk-dev libgtk-3-dev
- uses: actions/checkout@v2
- name: All targets checks
run: cargo check --workspace --all-targets
- name: Clippy checks
run: cargo clippy --workspace --all-targets --all-features -- -D warnings -W clippy::all
- name: Documentation tests
run: cargo test --workspace --doc
- name: All features for all targets tests
run: cargo test --workspace --all-targets --all-features