Merge pull request #39 from peterkrull/master #39
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: [push, pull_request] | |
jobs: | |
test: | |
name: cargo test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
rust: [stable, beta, nightly] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Install rust (${{ matrix.rust}}) | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: ${{ matrix.rust }} | |
override: true | |
- name: Run cargo build | |
run: cargo build --all-features --verbose | |
- name: Run cargo test | |
run: cargo test --all-features --verbose | |
# Test no_std with release, which disables overflow checking | |
- name: Run cargo test (no_std) | |
run: cargo test --release --no-default-features --verbose |