-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (30 loc) · 826 Bytes
/
test.yml
File metadata and controls
30 lines (30 loc) · 826 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
on: [push, pull_request]
name: Test
jobs:
checks:
runs-on: ubuntu-latest
steps:
- run: sudo apt update && sudo apt install build-essential llvm libclang-dev libspa-0.2-dev libpipewire-0.3-dev
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
components: clippy
default: true
toolchain: stable
- name: Cache Rust Deps
uses: actions/cache@v3
with:
path: ~/.cargo
key: ${{ runner.os }}-rust
- name: Run cargo check
uses: actions-rs/cargo@v1
with:
command: check
- name: Run cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test