-
Notifications
You must be signed in to change notification settings - Fork 6
82 lines (70 loc) · 2.98 KB
/
tests.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: Tests
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Test default
run: cargo test
- name: Install nightly component
run: rustup toolchain install nightly
- name: Test default (dyn_unstable)
run: cargo +nightly test --features dyn_unstable
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
env:
token: ${{ secrets.CODECOV_TOKEN }}
slug: EricLBuehler/trc
miri:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Miri
run: rustup +nightly component add miri
- name: Test with Miri
run: cargo +nightly miri test
- name: Miri with strict provenance
run: MIRIFLAGS="-Zmiri-strict-provenance" cargo +nightly miri test
- name: Miri with symbolic alignment check
run: MIRIFLAGS="-Zmiri-symbolic-alignment-check" cargo +nightly miri test
- name: Miri with tree borrows
run: MIRIFLAGS="-Zmiri-tree-borrows" cargo +nightly miri test
- name: Test with Miri (dyn_unstable)
run: cargo +nightly miri test --features dyn_unstable
- name: Miri with strict provenance (dyn_unstable)
run: MIRIFLAGS="-Zmiri-strict-provenance" cargo +nightly miri test --features dyn_unstable
- name: Miri with symbolic alignment check (dyn_unstable)
run: MIRIFLAGS="-Zmiri-symbolic-alignment-check" cargo +nightly miri test --features dyn_unstable
- name: Miri with tree borrows (dyn_unstable)
run: MIRIFLAGS="-Zmiri-tree-borrows" cargo +nightly miri test --features dyn_unstable
- name: Test with Miri (serde)
run: cargo +nightly miri test --features serde
- name: Miri with strict provenance (serde)
run: MIRIFLAGS="-Zmiri-strict-provenance" cargo +nightly miri test --features serde
- name: Miri with symbolic alignment check (serde)
run: MIRIFLAGS="-Zmiri-symbolic-alignment-check" cargo +nightly miri test --features serde
- name: Miri with tree borrows (serde)
run: MIRIFLAGS="-Zmiri-tree-borrows" cargo +nightly miri test --features serde
- name: Test with Miri (stable_deref_trait)
run: cargo +nightly miri test --features stable_deref_trait
- name: Miri with strict provenance (stable_deref_trait)
run: MIRIFLAGS="-Zmiri-strict-provenance" cargo +nightly miri test --features stable_deref_trait
- name: Miri with symbolic alignment check (stable_deref_trait)
run: MIRIFLAGS="-Zmiri-symbolic-alignment-check" cargo +nightly miri test --features stable_deref_trait
- name: Miri with tree borrows (stable_deref_trait)
run: MIRIFLAGS="-Zmiri-tree-borrows" cargo +nightly miri test --features stable_deref_trait
typos:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Typo
run: cargo install typos-cli
- name: Run Typos
run: typos