version bump prep #112
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: [push] | |
permissions: | |
contents: write | |
jobs: | |
CleanupAndTest: | |
runs-on: ubuntu-latest | |
container: | |
image: rust:latest | |
steps: | |
- name: Add cargo features | |
run: rustup component add rustfmt clippy | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
path: repo | |
- name: Load cached dependencies | |
uses: Swatinem/rust-cache@v2 | |
- name: Fmt + clippy | |
run: | | |
cd repo | |
cargo clippy --all-features --all-targets --fix | |
cargo fmt | |
- name: Apply cleanup | |
uses: EndBug/add-and-commit@v9 | |
with: | |
message: 'applying code formatting, lint fixes and toc creation' | |
cwd: repo | |
- name: Fail build if clippy finds any error or warning | |
run: | | |
cd repo | |
cargo clippy --all-features --all-targets -- -D warnings -D clippy::pedantic | |
- name: Run test suite | |
run: | | |
cd repo | |
cargo test --all-features |