Skip to content

Merge pull request #12 from Rigidity/bump-0.6.0 #37

Merge pull request #12 from Rigidity/bump-0.6.0

Merge pull request #12 from Rigidity/bump-0.6.0 #37

Workflow file for this run

name: Rust
on:
push:
branches:
- main
tags:
- "**"
pull_request:
branches:
- "**"
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- name: Run tests
run: cargo test --all-features
- name: Clippy
run: cargo clippy
- name: Fmt
run: cargo fmt -- --files-with-diff --check
- name: Publish
if: startsWith(github.event.ref, 'refs/tags')
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.cargo_registry_token }}
run: cargo publish