Repository navigation
66 lines (57 loc) · 1.42 KB
/
Copy pathchecks.yml
File metadata and controls
66 lines (57 loc) · 1.42 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
63
64
65
66
name: checks
on:
push:
pull_request:
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
fedora-checks:
runs-on: ubuntu-latest
container:
# Keep this pinned to a stable Fedora release so CI remains reproducible.
image: fedora:41
steps:
- uses: actions/checkout@v5
- name: Install check dependencies
run: |
dnf install -y \
bash \
cargo \
clippy \
gcc \
coreutils \
diffutils \
findutils \
grep \
rust \
rustfmt \
sed \
util-linux \
which \
shellcheck \
git
- name: Rust format check
run: cargo fmt --all --check
- name: Rust unit/integration tests
run: |
if [[ -f Cargo.lock ]]; then
cargo test --all-targets --locked
else
cargo test --all-targets
fi
- name: Rust Clippy
run: cargo clippy --all-targets -- -D warnings
- name: Rust compile check
run: |
if [[ -f Cargo.lock ]]; then
cargo check --all-targets --locked
else
cargo check --all-targets
fi
- name: Rust build
run: |
if [[ -f Cargo.lock ]]; then
cargo build --all-targets --locked
else
cargo build --all-targets
fi