Skip to content

feat(ci): Add --keep-going to test in rust ci #45

feat(ci): Add --keep-going to test in rust ci

feat(ci): Add --keep-going to test in rust ci #45

Workflow file for this run

name: Rust CI
on:
push:
branches: "*"
pull_request:
branches: "*"
workflow_call:
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- uses: taiki-e/install-action@cargo-hack
- run: cargo hack check --each-feature --workspace --verbose --keep-going
test:
name: test
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- uses: taiki-e/install-action@cargo-hack
- run: cargo hack test --each-feature --clean-per-run --workspace --keep-going
clippy:
name: linter
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: clippy
- run: cargo clippy -- -D warnings
format:
name: format
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt
- run: cargo fmt -- --check