Merge pull request #132 from Vovke/contributing-update #2
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: Rust test | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
- stable | |
jobs: | |
check: | |
name: Cargo test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- name: Checkout sources | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 50 | |
submodules: 'recursive' | |
- name: Install Rust stable toolchain | |
uses: actions-rs/[email protected] | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- name: Install cargo-nextest | |
uses: baptiste0928/cargo-install@v3 | |
with: | |
crate: cargo-nextest | |
version: 0.9 | |
- name: Rust Cache | |
uses: Swatinem/[email protected] | |
- name: cargo nextest | |
run: cargo nextest run |