-
Notifications
You must be signed in to change notification settings - Fork 18
43 lines (35 loc) · 825 Bytes
/
ci.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
name: CI
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Check CPU
run: lscpu
- name: Install Protoc
uses: arduino/setup-protoc@v3
- name: Set up Go
uses: actions/setup-go@v4
- name: Install grpcurl
run: go install github.com/fullstorydev/grpcurl/cmd/grpcurl@latest
- name: Checkout
uses: actions/checkout@v4
- name: Run tests
run: cargo test
test_docsrs:
name: Test (docs.rs)
runs-on: ubuntu-latest
env:
RUSTDOCFLAGS: -Dwarnings
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- uses: dtolnay/install@cargo-docs-rs
- run: cargo docs-rs -p sorock