Skip to content

ci

ci #2

Workflow file for this run

name: "CI"
on:
pull_request:
merge_group:
push:
branches: [main]
env:
CARGO_TERM_COLOR: always
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
cargo-build:
name: Cargo Build
runs-on: ubuntu-latest
steps:
- name: Fetch Repository
uses: actions/checkout@v5
- name: Install stable toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: cargo build
run: cargo b --workspace --all-targets --all-features
cargo-fmt:
name: Cargo fmt
runs-on: ubuntu-latest
steps:
- name: Fetch Repository
uses: actions/checkout@v5
- name: Install stable toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt
toolchain: nightly
- name: Rustfmt Check
run: cargo fmt --all --check
cargo-clippy:
name: Cargo clippy
runs-on: ubuntu-latest
steps:
- name: Fetch Repository
uses: actions/checkout@v5
- name: Install stable toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: clippy
- name: Clippy Check
run: cargo clippy --workspace --all-targets --all-features -- -D warnings
typos-cli:
name: typos
runs-on: ubuntu-latest
steps:
- name: Fetch Repository
uses: actions/checkout@v5
- name: Install Typos
uses: taiki-e/install-action@v2
with:
tool: typos-cli
- name: run typos
run: typos