Skip to content

Merge pull request #23 from glennib/release-1.0.0 #30

Merge pull request #23 from glennib/release-1.0.0

Merge pull request #23 from glennib/release-1.0.0 #30

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