-
Notifications
You must be signed in to change notification settings - Fork 4
50 lines (45 loc) · 1.1 KB
/
test.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
name: Test, Run & Clippy
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
jobs:
run-test-clippy:
runs-on: ubuntu-latest
steps:
# Checkout
- uses: actions/checkout@v3
with:
repository: LivacoNew/CrabFetch
ref: master
path: CrabFetch
# Setup Rust & Cargo's Cache
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- uses: Swatinem/rust-cache@v2
with:
workspaces: CrabFetch
# Any deps we need, currently only libdbus-1
- name: Install Dependencies
run: |
sudo apt -y update
sudo apt -y install libdbus-1-dev
# Actually run what we want to run
- name: cargo clippy
run: |
cd CrabFetch
cargo clippy
- name: cargo test
run: |
cd CrabFetch
cargo test
- name: cargo test (all features)
run: |
cd CrabFetch
cargo test --all-features
- name: cargo run
run: |
cd CrabFetch
cargo run