name: Run tests
on: [push, pull_request]
env:
CARGO_INCREMENTAL: 0
CARGO_NET_RETRY: 10
RUSTUP_MAX_RETRIES: 10
CI: 1
QUICKCHECK_TESTS: 10000
QUICKCHECK_MAX_TESTS: 1000000
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Test Suite
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 20
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: Swatinem/rust-cache@v1
- name: Run cargo build
uses: actions-rs/cargo@v1
with:
command: build
args: --all
- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --all