Skip to content

build(header-plz): release v0.0.26 #172

build(header-plz): release v0.0.26

build(header-plz): release v0.0.26 #172

Workflow file for this run

name: Run Checks
on:
pull_request:
push:
branches:
- 'main'
workflow_call:
workflow_dispatch:
concurrency:
group: test-${{ github.ref_name }}
cancel-in-progress: true
env:
CARGO_INCREMENTAL: 0
CARGO_PROFILE_TEST_DEBUG: 0
jobs:
cargo-fmt:
name: Cargo fmt
runs-on: ubuntu-latest
steps:
- name: Fetch Repository
uses: actions/checkout@v4
- name: Install stable toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
components: rustfmt
- name: Caching
uses: Swatinem/rust-cache@v2
with:
cache-all-crates: true
save-if: ${{ github.ref == 'refs/heads/master' }}
cache-provider: "github"
- name: Rustfmt Check
run: cargo fmt --all --check
cargo-clippy:
name: Cargo clippy
runs-on: ubuntu-latest
steps:
- name: Fetch Repository
uses: actions/checkout@v4
- name: Install stable toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: clippy
- name: Caching
uses: Swatinem/rust-cache@v2
with:
cache-all-crates: true
save-if: ${{ github.ref == 'refs/heads/master' }}
cache-provider: "github"
- name: Clippy Check
run: cargo clippy --workspace --all-targets --all-features -- -Dwarnings
cargo-test:
name: Cargo test
runs-on: ubuntu-latest
steps:
- name: Fetch Repository
uses: actions/checkout@v4
- name: Install stable toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Caching
uses: Swatinem/rust-cache@v2
with:
cache-all-crates: true
save-if: ${{ github.ref == 'refs/heads/master' }}
cache-provider: "github"
- name: Install latest nextest release
uses: taiki-e/install-action@nextest
- name: Test with latest nextest release
uses: actions-rs/cargo@v1
with:
command: nextest
args: run