Skip to content

test

test #2

Workflow file for this run

name: CI
on:
push:
branches: [test-gh-actions]
pull_request:
jobs:
test:
name: test ${{ matrix.flags }} (${{ matrix.os }})
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest"]
rust: ["stable", "1.65"]
flags: ["--no-default-features", "", "--all-features"]
exclude:
# Skip because some features have highest MSRV.
- rust: "1.65" # MSRV
flags: "--all-features"
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- name: Install test binaries
shell: bash
run: ./.github/scripts/install_test_binaries.sh
- name: Install nextest
uses: taiki-e/install-action@nextest
- uses: Swatinem/rust-cache@v2
- name: build
if: matrix.rust == '1.65' # MSRV
run: cargo build --workspace ${{ matrix.flags }}
- name: test
if: matrix.rust != '1.65' # MSRV
shell: bash
run: |
cargo nextest run \
${{ matrix.flags }} \
--retries 2