-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (30 loc) · 873 Bytes
/
Copy pathrust.yml
File metadata and controls
39 lines (30 loc) · 873 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
39
name: Rust
on:
pull_request:
push:
branches:
- main
permissions:
contents: read
jobs:
test:
name: Test and lint
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Install Rust 1.85.0
shell: bash
run: |
rustup toolchain install 1.85.0 --profile minimal --component rustfmt --component clippy
- name: Check formatting
run: cargo fmt --all --check
- name: Lint
run: cargo clippy --workspace --all-targets --locked -- -D warnings
- name: Test
run: cargo test --workspace --locked
- name: Run the device-free demo
run: cargo run --locked -p orchardprobe-cli -- demo --json