-
Notifications
You must be signed in to change notification settings - Fork 6
44 lines (41 loc) · 1.01 KB
/
cargo-test.yml
File metadata and controls
44 lines (41 loc) · 1.01 KB
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: Cargo test
on:
push:
branches:
- main
paths:
- .github/workflows/cargo-test.yml
- Cargo.toml
- Cargo.lock
- dist-workspace.toml
- crates/**/src/**
- crates/**/tests/**
- crates/**/Cargo.toml
pull_request:
branches:
- main
paths:
- .github/workflows/cargo-test.yml
- Cargo.toml
- Cargo.lock
- dist-workspace.toml
- crates/**/src/**
- crates/**/tests/**
- crates/**/Cargo.toml
env:
CARGO_TERM_COLOR: always
jobs:
build_and_test:
name: cargo-test
strategy:
matrix:
toolchain: [stable, nightly]
os: [ubuntu-latest, windows-latest, macOS-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- name: Cache Rust
uses: Swatinem/rust-cache@v2
- run: cargo install --path crates/jarl --profile=dev --force
- run: cargo test --verbose