-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (30 loc) · 880 Bytes
/
rust-tests.yml
File metadata and controls
38 lines (30 loc) · 880 Bytes
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
name: Rust Tests
on:
pull_request:
paths:
- "src/**"
- "tests/**"
- "docs/template-markers.md"
- "Cargo.toml"
- "Cargo.lock"
env:
CARGO_TERM_COLOR: always
jobs:
test:
name: Build & Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Install shellcheck
# ubuntu-latest already ships shellcheck, but install explicitly to
# guarantee it on every refresh of the runner image and to surface
# a clear failure when the bash-lint integration test is enforced.
run: sudo apt-get update && sudo apt-get install -y shellcheck
- name: Build
run: cargo build --verbose
- name: Run tests
env:
ENFORCE_BASH_LINT: "1"
run: cargo test --verbose