-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (50 loc) · 1.54 KB
/
test.yml
File metadata and controls
62 lines (50 loc) · 1.54 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Tests
on:
push:
branches: [master]
pull_request:
types: [opened, synchronize, reopened]
jobs:
test:
strategy:
fail-fast: false
matrix:
version: [stable, nightly]
name: test_${{ matrix.version }}
runs-on: ubuntu-latest
env:
CI: 1
CARGO_UNSTABLE_SPARSE_REGISTRY: true
steps:
- uses: actions/checkout@v3
- name: Install Rust
run: |
rustup install ${{ matrix.version }} --no-self-update --profile minimal --force
rustup override set ${{ matrix.version }}
- run: cargo generate-lockfile
- name: Cache Dependencies
uses: Swatinem/rust-cache@v2.2.0
- name: cargo check
run: cargo check --workspace --bins --examples --tests
timeout-minutes: 30
- name: cargo build auditable release
run: cargo install cargo-auditable && cargo auditable build --release
timeout-minutes: 30
- name: cargo audit
run: cargo audit bin target/release/fs-index
timeout-minutes: 30
- name: cargo test
run: cargo test --workspace --all-features --no-fail-fast
timeout-minutes: 30
coverage:
name: coverage
runs-on: ubuntu-latest
container:
image: xd009642/tarpaulin:develop-nightly
options: --security-opt seccomp=unconfined
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Generate code coverage
run: |
cargo +nightly tarpaulin --all-features --workspace --timeout 120 --fail-under 90 --out Xml