-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (41 loc) · 947 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
44
45
name: Continuous integration
on:
push:
branches:
- main
- dev
paths-ignore:
- "*.md"
- "LICENSE"
pull_request:
branches:
- main
- dev
paths-ignore:
- "*.md"
- "LICENSE"
env:
CARGO_TERM_COLOR: always
jobs:
test:
runs-on: [self-hosted, Linux, X64]
container: rust:1
steps:
- name: Debug
run: echo ${{ github.ref_name }}
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Cache
uses: Swatinem/rust-cache@v2
with:
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install protoc
run: apt-get update && apt-get -y install protobuf-compiler
- name: Check format
run: |
rustup component add rustfmt
cargo fmt -- --check
- name: Run tests
run: cargo test --locked --no-fail-fast