mirror of
https://github.com/crate-ci/typos.git
synced 2024-11-22 00:51:11 -05:00
chore(ci): More exhaustively check features
This commit is contained in:
parent
92d486c4b0
commit
9258d9af7b
2 changed files with 10 additions and 23 deletions
15
.github/workflows/ci.yml
vendored
15
.github/workflows/ci.yml
vendored
|
@ -44,14 +44,11 @@ jobs:
|
||||||
with:
|
with:
|
||||||
toolchain: ${{ matrix.rust }}
|
toolchain: ${{ matrix.rust }}
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
- uses: taiki-e/install-action@cargo-hack
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cargo test --workspace --no-run
|
run: cargo test --workspace --no-run
|
||||||
- name: Default features
|
- name: Test
|
||||||
run: cargo test --workspace
|
run: cargo hack test --feature-powerset --workspace
|
||||||
- name: All features
|
|
||||||
run: cargo test --workspace --all-features
|
|
||||||
- name: No-default features
|
|
||||||
run: cargo test --workspace --no-default-features
|
|
||||||
msrv:
|
msrv:
|
||||||
name: "Check MSRV"
|
name: "Check MSRV"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -65,11 +62,7 @@ jobs:
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
- uses: taiki-e/install-action@cargo-hack
|
- uses: taiki-e/install-action@cargo-hack
|
||||||
- name: Default features
|
- name: Default features
|
||||||
run: cargo hack check --locked --rust-version --ignore-private --workspace --all-targets
|
run: cargo hack check --feature-powerset --locked --rust-version --ignore-private --workspace --all-targets
|
||||||
- name: All features
|
|
||||||
run: cargo hack check --locked --rust-version --ignore-private --workspace --all-targets --all-features
|
|
||||||
- name: No-default features
|
|
||||||
run: cargo hack check --locked --rust-version --ignore-private --workspace --all-targets --no-default-features
|
|
||||||
lockfile:
|
lockfile:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
18
.github/workflows/rust-next.yml
vendored
18
.github/workflows/rust-next.yml
vendored
|
@ -36,14 +36,11 @@ jobs:
|
||||||
with:
|
with:
|
||||||
toolchain: ${{ matrix.rust }}
|
toolchain: ${{ matrix.rust }}
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
- uses: taiki-e/install-action@cargo-hack
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cargo test --workspace --no-run
|
run: cargo test --workspace --no-run
|
||||||
- name: Default features
|
- name: Test
|
||||||
run: cargo test --workspace
|
run: cargo hack test --feature-powerset --workspace
|
||||||
- name: All features
|
|
||||||
run: cargo test --workspace --all-features
|
|
||||||
- name: No-default features
|
|
||||||
run: cargo test --workspace --no-default-features
|
|
||||||
latest:
|
latest:
|
||||||
name: "Check latest dependencies"
|
name: "Check latest dependencies"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -55,13 +52,10 @@ jobs:
|
||||||
with:
|
with:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
- uses: taiki-e/install-action@cargo-hack
|
||||||
- name: Update dependencues
|
- name: Update dependencues
|
||||||
run: cargo update
|
run: cargo update
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cargo test --workspace --no-run
|
run: cargo test --workspace --no-run
|
||||||
- name: Default features
|
- name: Test
|
||||||
run: cargo test --workspace
|
run: cargo hack test --feature-powerset --workspace
|
||||||
- name: All features
|
|
||||||
run: cargo test --workspace --all-features
|
|
||||||
- name: No-default features
|
|
||||||
run: cargo test --workspace --no-default-features
|
|
||||||
|
|
Loading…
Reference in a new issue