-
Notifications
You must be signed in to change notification settings - Fork 23
52 lines (42 loc) · 1.18 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
name: CI
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
push:
branches: [stable, dev]
workflow_dispatch:
jobs:
cargo-checkmate:
uses: ./.github/workflows/cargo-checkmate.yaml
reject-trailing-whitespace:
name: Reject trailing whitespace
runs-on: ubuntu-22.04
if: github.event.pull_request.draft == false
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Reject trailing whitespace
run: ./utils/trailing-whitespace.sh reject
run-doc-tests:
name: Run doc tests
runs-on: ubuntu-22.04
if: github.event.pull_request.draft == false
env:
RUSTFLAGS: -D warnings
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Install protoc
run: |
if ! command -v protoc; then
sudo apt-get install -y protobuf-compiler
fi
- name: Cargo cache
uses: Swatinem/rust-cache@v2
- name: Run doc tests
run: cargo test --doc
test:
uses: ./.github/workflows/test.yaml
with:
nextest-flags: "-E 'not test(slow)'"