chore: pin release-plz version (#91) #226
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: rust | |
on: | |
push: | |
branches: [main, staging, trying] | |
pull_request: | |
branches: [main] | |
env: | |
CARGO_INCREMENTAL: 0 | |
CARGO_TERM_COLOR: always | |
CI: 1 | |
RUSTFLAGS: "-W rust-2021-compatibility -D warnings" | |
RUST_BACKTRACE: short | |
jobs: | |
check-format: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: dtolnay/[email protected] | |
with: | |
components: rustfmt | |
- name: Check formatting | |
uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: -- --check | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: dtolnay/[email protected] | |
- uses: Swatinem/rust-cache@v2 | |
- name: Build | |
shell: bash | |
run: | | |
cargo build --all-features | |
- name: Build tests | |
shell: bash | |
run: | | |
cargo test --all-features --no-run | |
- name: Run tests | |
shell: bash | |
run: | | |
cargo test --all-features | |
- name: Build examples | |
shell: bash | |
run: | | |
cargo build --all --examples | |
- name: Build example tests | |
shell: bash | |
run: | | |
cargo test --all --examples --no-run | |
cargo test --all --examples | |
- name: Run example tests | |
shell: bash | |
run: | | |
cargo test --all --examples |