# Runs testing related jobs
|
|
|
|
name: test
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
types: [opened, reopened, synchronize]
|
|
|
|
jobs:
|
|
test:
|
|
name: test ${{matrix.toolchain}} on ${{matrix.os}} with ${{matrix.features}}
|
|
runs-on: ${{matrix.os}}-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
toolchain: [stable, nightly]
|
|
os: [ubuntu]
|
|
features: ["test", "test-no-default-features"]
|
|
timeout-minutes: 30
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
- name: Install rust
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: ${{matrix.toolchain}}
|
|
override: true
|
|
- uses: davidB/rust-cargo-make@v1
|
|
- name: cargo make - test
|
|
run: cargo make ${{matrix.features}}
|