-
-
Notifications
You must be signed in to change notification settings - Fork 34
44 lines (41 loc) · 935 Bytes
/
test.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
name: CI
on:
# TODO: remove
push:
branches:
- main
pull_request:
branches:
- "**"
env:
CARGO_TERM_COLOR: always
jobs:
test_stable:
strategy:
matrix:
os:
- ubuntu-latest
# - windows-latest
# - macos-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up cargo cache
uses: Swatinem/rust-cache@v2
with:
prefix-key: ${{ runner.os }}-cargo
- name: Build
run: cargo build -v
- name: Format
run: cargo fmt --all -- --check
- name: Clippy
run: cargo clippy
- name: Run tests
run: cargo test -v -- --nocapture
- name: Build KV example
run: cargo build
working-directory: examples/actix-kv
- name: Test KV example
run: cargo test
working-directory: examples/actix-kv