name: test
on: [push, pull_request]
jobs:
test:
name: Run tests
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Setup Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Build - Default
uses: actions-rs/cargo@v1
with:
command: build
- name: Build - No features
uses: actions-rs/cargo@v1
with:
command: build
args: --no-default-features
- name: Build - Only time feature
uses: actions-rs/cargo@v1
with:
command: build
args: --no-default-features --features=time
- name: Build - All features
uses: actions-rs/cargo@v1
with:
command: build
args: --all-features
- name: Test - All targets
uses: actions-rs/cargo@v1
with:
command: test
args: --all-targets
- name: Test - Only tests with the Time crate
uses: actions-rs/cargo@v1
with:
command: test
args: --tests --no-default-features --features=time
- name: Test - Only Documentation
uses: actions-rs/cargo@v1
with:
command: test
args: --doc --features=test