Skip to content

Merge pull request #18 from alexkunde/exitstatus #70

Merge pull request #18 from alexkunde/exitstatus

Merge pull request #18 from alexkunde/exitstatus #70

Workflow file for this run

name: Rust
on:
workflow_dispatch:
pull_request:
branches: [ main ]
push:
branches: [ main ]
jobs:
build:
permissions: write-all
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
~/.rustup
/usr/local/cargo
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install Rust
run: rustup update stable
- name: Run rustfmt
run: cargo fmt --all -- --check
- name: Run clippy
run: cargo clippy --all -- -D warnings
- uses: taiki-e/install-action@nextest
- name: Cargo Test
run: cargo nextest run --all-features --no-capture --no-fail-fast