-
-
Notifications
You must be signed in to change notification settings - Fork 76
44 lines (44 loc) · 1.35 KB
/
test.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
44
name: Test selene
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run tests (selene, all features)
run: cargo test --release -- --nocapture
working-directory: selene
- name: Run tests (selene, no features)
run: cargo test --release --no-default-features -- --nocapture
working-directory: selene
- name: Run tests (selene-lib, all features)
run: cargo test --release
working-directory: selene-lib
- name: Run tests (selene-lib, no features)
run: cargo test --no-default-features
working-directory: selene-lib
# Remove this when non_exhaustive_omitted_patterns_lint is made stable in the next Rust version
test_exhaustive_checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install nightly for exhaustive check tests
uses: dtolnay/rust-toolchain@nightly
- name: Run exhaustive check tests
run: cargo check --features force_exhaustive_checks
working-directory: selene-lib
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Clippy
run: cargo clippy -- -D warnings
- name: Rustfmt
run: cargo fmt -- --check
if: success() || failure()