-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (29 loc) · 767 Bytes
/
test.yaml
File metadata and controls
31 lines (29 loc) · 767 Bytes
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
name: Cargo Test
on: [push, pull_request]
jobs:
test:
name: Test
env:
PROJECT_NAME_UNDERSCORE: concord
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
- name: Cargo cache
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install rustfmt
run: rustup component add rustfmt
- name: Install protobuf
run: sudo apt-get install -y protobuf-compiler
- name: Run tests
run: cargo test