Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions .github/workflows/docs-required-override.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,6 @@ jobs:
steps:
- run: echo "No-op job to trigger the required checks."

override_unit_tests:
name: tests
runs-on: ubuntu-24.04-arm
needs:
- changes-docs
- changes-not-docs
if: ${{ (needs.changes-docs.outputs.changesFound == 'true') && (needs.changes-not-docs.outputs.otherChangesFound == 'false') }}
steps:
- run: echo "No-op job to trigger the required checks."

override_unit_tests_release:
name: tests-release
runs-on: ubuntu-24.04-arm
Expand Down
23 changes: 3 additions & 20 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,25 +33,6 @@ env:
CXX: "sccache clang++"

jobs:
tests:
runs-on: ubuntu-24.04-arm
# Run the job only if the PR is not a draft.
# This is done to limit the runner cost.
if: github.event.pull_request.draft == false
timeout-minutes: 45
steps:
- name: Checkout Sources
uses: actions/checkout@v6
- name: Setup sccache
uses: mozilla-actions/[email protected]
timeout-minutes: ${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }}
continue-on-error: true
- uses: actions/setup-go@v6
with:
go-version-file: "go.work"
- name: install nextest
uses: taiki-e/install-action@nextest
- run: make test
tests-release:
runs-on: ubuntu-24.04-arm
# Run the job only if the PR is not a draft.
Expand Down Expand Up @@ -80,7 +61,9 @@ jobs:
go-version-file: "go.work"
- name: install nextest
uses: taiki-e/install-action@nextest
- run: make test-release
- run: |
make test-release-docs
make test-release
env:
# To minimize compile times: https://nnethercote.github.io/perf-book/build-configuration.html#minimizing-compile-times
RUSTFLAGS: "-C linker=clang -C link-arg=-fuse-ld=lld"
Expand Down
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -101,17 +101,21 @@ docker-run:
test:
cargo nextest run --workspace --no-fail-fast

test-docs:
# nextest doesn't run doctests https://github.com/nextest-rs/nextest/issues/16
# see also lib.rs::doctest_private
cargo test --doc --features doctest-private

test-release:
cargo nextest run --cargo-profile quick --workspace --no-fail-fast

test-all: test test-release
test-release-docs:
# nextest doesn't run doctests https://github.com/nextest-rs/nextest/issues/16
# see also lib.rs::doctest_private
cargo test --profile quick --doc --features doctest-private

codecov:
cargo llvm-cov --workspace --codecov --output-path lcov.info --ignore-run-fail
cargo llvm-cov --workspace --codecov --output-path lcov.info

# Checks if all headers are present and adds if not
license:
Expand Down
Loading