-
Notifications
You must be signed in to change notification settings - Fork 3
52 lines (43 loc) · 1.23 KB
/
ci-conv.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
51
52
name: ci-conv
on:
push:
branches: ["main"]
# Allows to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
conv-cargo-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- name: Install protoc
run: sudo apt-get install protobuf-compiler
- name: Cargo Test
working-directory: ${{github.workspace}}/conv/
run: cargo test --all
conv-fmt-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt
- name: Format Check
working-directory: ${{github.workspace}}/conv/
run: cargo fmt -- --check
conv-clippy-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: clippy
- name: Install protoc
run: sudo apt-get install protobuf-compiler
- name: Lint
working-directory: ${{github.workspace}}/conv/
run: cargo clippy --all-features -- -D warnings