chore(serio): release v0.1.0 #111
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: [dev] | |
pull_request: | |
branches: [dev] | |
env: | |
CARGO_TERM_COLOR: always | |
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse | |
jobs: | |
build_and_test: | |
if: ( ! github.event.pull_request.draft ) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Stable | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
- uses: Swatinem/[email protected] | |
- name: "Build" | |
run: cargo build | |
- name: "Test" | |
# Run all tests (bins, examples, lib, integration and docs) | |
# https://doc.rust-lang.org/cargo/commands/cargo-test.html#target-selection | |
run: cargo test | |
- name: "Check documentation" | |
env: | |
RUSTDOCFLAGS: -D warnings | |
run: cargo doc --no-deps --document-private-items --all-features --workspace --examples | |
rustfmt: | |
name: Rustfmt | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Nightly with rustfmt | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: nightly | |
components: rustfmt | |
- name: "Check formatting" | |
run: cargo +nightly fmt --check --all |