-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (33 loc) · 1.18 KB
/
actions.yml
File metadata and controls
45 lines (33 loc) · 1.18 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
name: tests
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
schedule:
- cron: "25 22 * * 1"
jobs:
test:
runs-on: ubuntu-latest
permissions:
security-events: write
env:
RUSTFLAGS: -D warnings
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
target: x86_64-unknown-linux-gnu
toolchain: nightly
- name: Install cargo careful
run: curl --user-agent "cargo-quickinstall/0.3.9 client (alsuren@gmail.com)" --location --silent --show-error --fail "https://github.com/cargo-bins/cargo-quickinstall/releases/download/cargo-careful-0.4.3/cargo-careful-0.4.3-x86_64-unknown-linux-gnu.tar.gz" | tar -xzvvf - -C ~/.cargo/bin
- name: Check formatting
run: cargo fmt --all --check
- name: Run tests in relase mode
run: cargo test --all --all-features --release
- name: Run tests with careful
run: ASAN_OPTIONS="" cargo careful test --all --all-features -Zcareful-sanitizer
- name: Run clippy
run: cargo clippy --all --all-features