-
Notifications
You must be signed in to change notification settings - Fork 5
36 lines (31 loc) · 900 Bytes
/
tests.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
on: [pull_request, push]
name: Tests
jobs:
build_and_test:
name: Rust tests
runs-on: ubuntu-latest
strategy:
matrix:
rust_version: [1.62, stable]
steps:
- uses: actions/checkout@master
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust_version }}
default: true
- name: All feature tests
uses: actions-rs/cargo@v1
with:
command: test
args: --workspace --all-features
- name: Build without features
uses: actions-rs/cargo@v1
with:
command: build
args: --workspace --no-default-features
- name: Normal tests without extra features (but derive is enabled)
uses: actions-rs/cargo@v1
with:
command: test
args: --workspace --no-default-features --features=derive