-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (38 loc) · 949 Bytes
/
ci.yaml
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
name: Rust
on:
pull_request:
merge_group:
env:
CARGO_TERM_COLOR: always
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
- name: Install Protoc
uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Clippy
run: cargo clippy -- -D warnings
- name: Build
run: make build
- name: unit test
run: cargo test --locked --all-targets
# https://github.com/rust-lang/cargo/issues/6669
- name: doc test
run: cargo test --locked --all-features --doc
- name: e2e test
run: make e2e
run-examples:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
- name: Install Protoc
uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: examples test
run: make test-examples