mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-12-05 05:23:36 -05:00
Merge pull request #9063 from storytold/ci/windows-lean-tests
ci: trial: Windows tests only what is Windows-specific, through nextest
This commit is contained in:
5 files changed
+66
-5
No files matched your search
@@ -81,9 +81,17 @@ jobs:
|
||||
# differs by platform: the build (with resources) and the tests. Clippy runs on Linux in
|
||||
# `cargo xtask ci`; lints don't differ by platform.
|
||||
timeout-minutes: 120
|
||||
command: cargo test --workspace --locked
|
||||
# Windows tests what only Windows can show: the crates with Windows-specific code or tests
|
||||
# (`cfg(windows)` paths, the Windows spooler, winres, the native UI), through nextest as Linux
|
||||
# does. The crates left out have no `cfg(windows)` code and run the same tests on Linux in
|
||||
# `cargo xtask ci`; so do pdfcraft-web (wasm) and the OCR worker. A new crate is tested here
|
||||
# until it is added to the list, so the list can only be too short, not make a test vanish.
|
||||
command: |
|
||||
cargo nextest run --workspace --lib --bins --tests --no-fail-fast --locked --exclude pdfcraft-web --exclude pdfcraft-ocr-worker --exclude pdfcraft-a11y --exclude pdfcraft-annot --exclude pdfcraft-audit --exclude pdfcraft-compare --exclude pdfcraft-content --exclude pdfcraft-cos --exclude pdfcraft-crypt --exclude pdfcraft-edit --exclude pdfcraft-export --exclude pdfcraft-filters --exclude pdfcraft-fonts --exclude pdfcraft-forms --exclude pdfcraft-geom --exclude pdfcraft-measure --exclude pdfcraft-model --exclude pdfcraft-oracle --exclude pdfcraft-organize --exclude pdfcraft-prc-render --exclude pdfcraft-preflight --exclude pdfcraft-redact --exclude pdfcraft-testkit --exclude pdfcraft-xfa --exclude pdfcraft-xfdf --exclude xtask
|
||||
cargo test --workspace --doc --locked --exclude pdfcraft-web --exclude pdfcraft-ocr-worker --exclude pdfcraft-a11y --exclude pdfcraft-annot --exclude pdfcraft-audit --exclude pdfcraft-compare --exclude pdfcraft-content --exclude pdfcraft-cos --exclude pdfcraft-crypt --exclude pdfcraft-edit --exclude pdfcraft-export --exclude pdfcraft-filters --exclude pdfcraft-fonts --exclude pdfcraft-forms --exclude pdfcraft-geom --exclude pdfcraft-measure --exclude pdfcraft-model --exclude pdfcraft-oracle --exclude pdfcraft-organize --exclude pdfcraft-prc-render --exclude pdfcraft-preflight --exclude pdfcraft-redact --exclude pdfcraft-testkit --exclude pdfcraft-xfa --exclude pdfcraft-xfdf --exclude xtask
|
||||
# On main and manual runs a `cache warm (windows-latest)` leg builds the tests (the build
|
||||
# `command` does, without running them) and saves the dependency cache as soon as that
|
||||
# succeeds. Without it the cache is saved only at the end of a green gate, and a main whose
|
||||
# Windows tests fail never saves it, so every full-ci pull request compiled cold (#9054).
|
||||
warm-command: cargo test --workspace --no-run --locked
|
||||
# The same build as `command`, flag for flag, so the warm leg saves what the gate restores.
|
||||
warm-command: cargo nextest run --workspace --lib --bins --tests --no-run --locked --exclude pdfcraft-web --exclude pdfcraft-ocr-worker --exclude pdfcraft-a11y --exclude pdfcraft-annot --exclude pdfcraft-audit --exclude pdfcraft-compare --exclude pdfcraft-content --exclude pdfcraft-cos --exclude pdfcraft-crypt --exclude pdfcraft-edit --exclude pdfcraft-export --exclude pdfcraft-filters --exclude pdfcraft-fonts --exclude pdfcraft-forms --exclude pdfcraft-geom --exclude pdfcraft-measure --exclude pdfcraft-model --exclude pdfcraft-oracle --exclude pdfcraft-organize --exclude pdfcraft-prc-render --exclude pdfcraft-preflight --exclude pdfcraft-redact --exclude pdfcraft-testkit --exclude pdfcraft-xfa --exclude pdfcraft-xfdf --exclude xtask
|
||||
Reference in new issue
Block a user