-
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (35 loc) · 1.06 KB
/
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
name: 🧪 Test
on: [pull_request, push]
jobs:
test-lib:
name: Test library
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest]
toolchain: [stable, nightly]
continue-on-error: true
steps:
# Checkout the repository
- name: Checkout repository
uses: actions/checkout@v4
# Setup Rust
- name: Setup Rust
run: |
rustup toolchain add ${{ matrix.toolchain }} --component llvm-tools-preview
rustup override set ${{ matrix.toolchain }}
# Configure cache
- name: Configure cache
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: test-${{ runner.os }}-cargo-${{ matrix.toolchain }}-${{ hashFiles('**/Cargo.lock') }}
# Run tests with all features
- name: Run tests with all features
id: run-tests-all-features
run: cargo test --verbose --workspace --all-features