Skip to content

Merge pull request #20 from glennib/release-plz-2024-12-29T00-11-18Z #23

Merge pull request #20 from glennib/release-plz-2024-12-29T00-11-18Z

Merge pull request #20 from glennib/release-plz-2024-12-29T00-11-18Z #23

Workflow file for this run

name: Formatting, tests, lints
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
fmt:
name: Formatting
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- name: Run formatting checks
run: cargo +nightly fmt -- --check
test-lint:
name: Test and lint
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Run tests
run: cargo test
- name: Run lints
run: cargo clippy -- -D warnings