-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (37 loc) · 940 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
42
43
44
45
46
47
name: ci
on:
push:
branches:
- main
tags-ignore:
- v*
pull_request:
branches:
- main
jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v3
# Nightly needed for `cargo +nightly fmt` below
- name: Install Rust toolchain
run: |
rustup update
rustup toolchain install nightly --profile minimal
rustup component add rustfmt --toolchain nightly
# rustup component add clippy --toolchain nightly
- name: Install just
uses: taiki-e/install-action@v2
with:
tool: just
- name: Install protoc
uses: arduino/setup-protoc@v2
- name: Set up Rust cache
uses: Swatinem/rust-cache@v2
- name: Check code format
run: just fmt_check
- name: Run linter
run: just lint
- name: Run tests
run: just test