mirror of
https://github.com/ClementTsang/bottom.git
synced 2025-11-29 10:04:18 +01:00
ci: run default feature tests in FreeBSD as well (#1884)
* ci: run basic tests in freebsd as well * oops a space * actually test
This commit is contained in:
parent
a8f65a8065
commit
316a3c0564
16
.github/workflows/ci.yml
vendored
16
.github/workflows/ci.yml
vendored
@ -110,21 +110,11 @@ jobs:
|
|||||||
run: cargo fmt --all -- --check
|
run: cargo fmt --all -- --check
|
||||||
|
|
||||||
# TODO: add junit output using nextest for codecov (https://docs.codecov.com/docs/test-analytics)
|
# TODO: add junit output using nextest for codecov (https://docs.codecov.com/docs/test-analytics)
|
||||||
- name: Build tests
|
|
||||||
uses: ClementTsang/cargo-action@v0.0.7
|
|
||||||
with:
|
|
||||||
command: test
|
|
||||||
args: --no-run --locked ${{ matrix.features }} --target=${{ matrix.info.target }}
|
|
||||||
use-cross: ${{ matrix.info.cross }}
|
|
||||||
cross-version: 0.2.5
|
|
||||||
env:
|
|
||||||
RUST_BACKTRACE: full
|
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
uses: ClementTsang/cargo-action@v0.0.7
|
uses: ClementTsang/cargo-action@v0.0.7
|
||||||
with:
|
with:
|
||||||
command: test
|
command: test
|
||||||
args: --no-fail-fast ${{ matrix.features }} --target=${{ matrix.info.target }} -- --nocapture --quiet
|
args: --no-fail-fast --locked ${{ matrix.features }} --target=${{ matrix.info.target }} -- --nocapture --quiet
|
||||||
use-cross: ${{ matrix.info.cross }}
|
use-cross: ${{ matrix.info.cross }}
|
||||||
cross-version: 0.2.5
|
cross-version: 0.2.5
|
||||||
env:
|
env:
|
||||||
@ -327,7 +317,7 @@ jobs:
|
|||||||
key: ${{ matrix.info.target }}-${{ matrix.info.os_release }}
|
key: ${{ matrix.info.target }}-${{ matrix.info.os_release }}
|
||||||
cache-all-crates: true
|
cache-all-crates: true
|
||||||
|
|
||||||
- name: Clippy (FreeBSD)
|
- name: Tests + Clippy (FreeBSD)
|
||||||
if: ${{ matrix.info.type == 'freebsd' }}
|
if: ${{ matrix.info.type == 'freebsd' }}
|
||||||
uses: vmactions/freebsd-vm@487ce35b96fae3e60d45b521735f5aa436ecfade # v1.2.4
|
uses: vmactions/freebsd-vm@487ce35b96fae3e60d45b521735f5aa436ecfade # v1.2.4
|
||||||
with:
|
with:
|
||||||
@ -340,6 +330,8 @@ jobs:
|
|||||||
sh rustup.sh --default-toolchain stable -y
|
sh rustup.sh --default-toolchain stable -y
|
||||||
run: |
|
run: |
|
||||||
. "$HOME/.cargo/env"
|
. "$HOME/.cargo/env"
|
||||||
|
# Note this only tests the default features, but I think that's fine.
|
||||||
|
cargo test --no-fail-fast --locked -- --nocapture --quiet
|
||||||
cargo clippy --all-targets --workspace -- -D warnings
|
cargo clippy --all-targets --workspace -- -D warnings
|
||||||
|
|
||||||
completion:
|
completion:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user