chore: bump version to 0.5.0
in README.md
#6
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: CI | |
on: | |
push: | |
pull_request: | |
env: | |
CARGO_TERM_COLOR: always | |
# See https://rustmagazine.org/issue-2/optimize-rust-comptime/#step-3:-disable-incremental-compilation | |
CARGO_INCREMENTAL: 0 | |
RUST_BACKTRACE: 1 | |
jobs: | |
typos: | |
name: Check for typos | |
runs-on: self-hosted | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
- name: Install typos tool | |
uses: taiki-e/install-action@v2 | |
with: | |
tool: [email protected] | |
- name: Check for typos | |
run: typos --color always --format long | |
rustfmt: | |
name: Verify code formatting | |
runs-on: self-hosted | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: stable | |
- name: Check with rustfmt | |
run: cargo fmt --all --check -- --config-path rustfmt.toml | |
deny: | |
name: Run cargo-deny | |
runs-on: self-hosted | |
steps: | |
- name: Set up required tools | |
run: | | |
sudo apt-get update \ | |
&& sudo apt-get install curl build-essential -y | |
- name: Checkout repository | |
uses: actions/[email protected] | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: stable | |
- name: Set up cache | |
uses: Swatinem/rust-cache@v2 | |
- name: Install cargo-deny | |
uses: taiki-e/install-action@v2 | |
with: | |
tool: [email protected] | |
- name: Run cargo-deny | |
run: cargo deny --all-features --workspace check | |
test: | |
runs-on: self-hosted | |
strategy: | |
fail-fast: false | |
matrix: | |
# Tests MSRV and the latest stable. | |
rust-version: ["1.77", "stable"] | |
steps: | |
- name: Set up required tools | |
run: | | |
sudo apt-get update \ | |
&& sudo apt-get install curl build-essential -y | |
- name: Checkout repository | |
uses: actions/[email protected] | |
- name: "Install Rust" | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ matrix.rust-version }} | |
- name: Set up cache | |
uses: Swatinem/rust-cache@v2 | |
- name: Build fs-more | |
run: cargo build -p fs-more --lib --all-features | |
- name: Build tests | |
run: cargo build --tests --all-features | |
- name: Build all | |
run: cargo build --all-targets --all-features | |
- name: Run doctests | |
run: cargo test --workspace --doc --all-features | |
- name: Install nextest | |
uses: taiki-e/install-action@v2 | |
with: | |
tool: [email protected] | |
- name: Run tests | |
run: cargo nextest run --color always --workspace --all-targets --all-features --no-fail-fast |