name: Test and lint
on:
schedule:
- cron: "0 0 1 * *"
pull_request:
push:
branches: main
jobs:
test:
name: Main workflow
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy,rustfmt
- run: cargo fmt --check
- run: cargo test --all-features
- run: cargo clippy --all-features -- -Dwarnings