create_mock_future: Implement Debug #225
Workflow file for this run
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: async-time-mock | |
on: push | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
check: | |
name: Check | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Install rust toolchain | |
uses: dtolnay/[email protected] | |
- uses: Swatinem/[email protected] | |
- name: Check all features | |
run: cargo check --tests --all-features | |
- name: Check with default features | |
run: cargo check --tests | |
- name: Check without default features | |
run: cargo check --tests --no-default-features | |
- name: Check with only stream feature | |
run: cargo check --tests --no-default-features --features stream | |
- name: Check with only mock feature | |
run: cargo check --tests --no-default-features --features mock | |
- name: Check with only interval feature | |
run: cargo check --tests --no-default-features --features interval | |
- name: Check with mock and interval feature | |
run: cargo check --tests --no-default-features --features mock,interval | |
check-msrv: | |
name: Check with Minimum Supported Rust Version | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ ubuntu-24.04, windows-latest, macos-14 ] | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Install rust toolchain | |
uses: dtolnay/[email protected] | |
- uses: Swatinem/[email protected] | |
- name: Check all features | |
run: cargo check --workspace --tests --all-features | |
lint: | |
name: Lint | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Install rust toolchain | |
uses: dtolnay/[email protected] | |
with: | |
components: clippy | |
- uses: Swatinem/[email protected] | |
- name: Run clippy linter | |
run: cargo clippy --all-features --tests --workspace -- -D warnings | |
rustfmt: | |
name: Check formatting with rustfmt | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Install rust toolchain | |
uses: dtolnay/[email protected] | |
with: | |
components: rustfmt | |
- uses: Swatinem/[email protected] | |
- name: Check formatting | |
run: cargo fmt --all -- --check | |
check_semver_violations: | |
name: Check semver violations | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Check semver | |
uses: obi1kenobi/[email protected] | |
test: | |
name: Test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ ubuntu-24.04, windows-2022, macos-14 ] | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Install rust toolchain | |
uses: dtolnay/[email protected] | |
- uses: Swatinem/[email protected] | |
- name: Build | |
run: cargo build --all-features | |
- name: Run tests | |
run: cargo test --all-features |