Skip to content

chore: separate action jobs #7

chore: separate action jobs

chore: separate action jobs #7

Workflow file for this run

name: Rust
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
CARGO_TERM_COLOR: always
jobs:
install:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install nightly toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rustfmt, clippy
clippy:
runs-on: ubuntu-latest
steps:
- name: Run clippy
run: cargo clippy --verbose
fmt:
runs-on: ubuntu-latest
steps:
- name: Check formatting
run: cargo fmt --check --verbose
test:
runs-on: ubuntu-latest
steps:
- name: Run tests
run: cargo test --verbose
doc:
runs-on: ubuntu-latest
steps:
- name: Generate documentation
run: cargo doc --verbose
build:
runs-on: ubuntu-latest
steps:
- name: Build
run: cargo build --verbose