-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (33 loc) · 889 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
name: Test
on: [push, pull_request]
jobs:
build-test:
name: Build + Test
strategy:
fail-fast: false
matrix:
rust:
- stable
- nightly
features:
- ""
include:
- rust: nightly
cargo_flags: -Z minimal-versions
runs-on: ubuntu-latest
steps:
- name: Update Rust
run: |
rustup toolchain install ${{ matrix.rust }} --profile minimal --allow-downgrade
rustup default ${{ matrix.rust }}
- name: Checkout
uses: actions/checkout@v3
- name: Build
run:
cargo build ${{ matrix.features }} ${{ matrix.cargo_flags }}
- name: Test
run:
cargo test ${{ matrix.features }} --all-targets --no-fail-fast
- name: Doc Test
run:
cargo test ${{ matrix.features }} --doc --no-fail-fast