-
Notifications
You must be signed in to change notification settings - Fork 29
35 lines (32 loc) · 900 Bytes
/
main.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
name: CI
on:
push:
branches: ['main']
pull_request:
branches: ['*']
jobs:
clippy:
name: Check code formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- uses: giraffate/clippy-action@v1
with:
reporter: 'github-pr-review'
github_token: ${{ secrets.GITHUB_TOKEN }}
clippy_flags: --all-features --all-targets --color always -- --deny warnings
build:
name: Build and test
runs-on: ubuntu-latest
steps:
- name: Install protoc
run: sudo apt install -y protobuf-compiler
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: cargo build
run: cargo build --release --all-features
- name: cargo test
run: cargo test --all-features --all-targets --benches