-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (37 loc) · 1.15 KB
/
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
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
cargo-test:
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: actions/checkout@v3
- name: Run cargo deftest
run: cargo test --verbose
- name: Run cargo test nodeffeatures+lib
run: cargo test --no-default-features --lib --verbose
- name: Run cargo alltest
run: cargo test --all-features --verbose
- name: Std
run: cargo test --no-default-features --features std,point,get_point_name --lib --verbose --examples
- name: PL
run: cargo test --no-default-features --features parking_lot,point,get_point_name --lib --verbose --examples
- name: ASYNC(TOKIO+PL)
run: cargo test --no-default-features --features async,point,get_point_name --lib --verbose --tests