-
Notifications
You must be signed in to change notification settings - Fork 12
46 lines (36 loc) · 945 Bytes
/
quality-check.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
name: Quality Check
on:
workflow_dispatch:
pull_request:
paths-ignore:
- "docs/**"
- "clients/**"
push:
branches:
- main
paths-ignore:
- "docs/**"
- "clients/**"
jobs:
quality-check:
name: Run All Checks
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Install Rust Toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Install Protobuf Compiler
run: |
sudo apt update && sudo apt upgrade -y
sudo apt install -y protobuf-compiler libprotobuf-dev
- name: Setup Test Environment
run: make setup-dev
- name: Run Formatter
run: cargo fmt -- --check
- name: Run Linter
run: cargo clippy -- -D warnings
- name: Run Tests
run: cargo test --all-features -- --test-threads 1