name: Rust Stable
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Run tests (no default features)
uses: actions-rs/cargo@v1
with:
command: test
args: --no-default-features
- name: Run tests (default features)
uses: actions-rs/cargo@v1
with:
command: test
- name: Run tests (serde)
uses: actions-rs/cargo@v1
with:
command: test
args: --features serde
- name: Run tests (float_deserialize)
uses: actions-rs/cargo@v1
with:
command: test
args: --features float_deserialize
- name: Run tests (all features)
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features
- name: Run tests (release build)
uses: actions-rs/cargo@v1
with:
command: test
args: --release