aboutsummaryrefslogtreecommitdiff
path: root/justfile
diff options
context:
space:
mode:
authorJJ Liebig <jonathan.liebig@gmail.com>2026-07-27 13:15:23 +0200
committerGitHub <noreply@github.com>2026-07-27 14:15:23 +0300
commit6d1bedee3ee164ed0151f8adab1313be5915d652 (patch)
treef7c524094e2d39327ff9615993e4ae6b563ed80f /justfile
parentdc2506ea8cb58fc8cde7ceb357cad03b1aba0da1 (diff)
fix: make native windows checks reliable (#1925)
Diffstat (limited to 'justfile')
-rw-r--r--justfile14
1 files changed, 14 insertions, 0 deletions
diff --git a/justfile b/justfile
index 7bc7cc29..e4010bcc 100644
--- a/justfile
+++ b/justfile
@@ -12,26 +12,40 @@ test-one filter:
cargo nextest run --locked "{{filter}}" --status-level fail --final-status-level fail --failure-output final --success-output never
# Run fast local lint checks
+[unix]
lint:
cargo fmt --check
cargo clippy --all-targets --locked -- -D warnings
+[script("powershell.exe", "-NoProfile", "-ExecutionPolicy", "Bypass", "-File")]
+[windows]
+lint:
+ & .\scripts\windows_check.ps1 -Mode lint
+
# Run PR CI checks
+[unix]
ci filter='all()': lint
cargo nextest run --locked -E "{{filter}}" --status-level fail --final-status-level slow --failure-output final --success-output never
just integration-assets-test
just plugin-marketplace-test
# Run Windows target lint from Unix/macOS to catch cfg(windows) compile and clippy failures before CI
+[unix]
windows-lint:
rustup target add x86_64-pc-windows-msvc
LIBGHOSTTY_VT_SIMD=false cargo clippy --bin herdr --locked --target x86_64-pc-windows-msvc -- -D warnings
# Check formatting + run unit tests + Windows target lint + maintenance script tests
+[unix]
check: ci windows-lint
python3 -m unittest scripts.test_agent_detection_manifest_check scripts.test_changelog scripts.test_config_reference_check scripts.test_docs_translation_parity scripts.test_hermes_integration_asset scripts.test_package_windows_conpty scripts.test_preview scripts.test_vendor_libghostty_vt scripts.test_vendor_portable_pty
@echo "docs reminder: if this changes user-facing behavior, make sure the relevant release docs are updated or called out before release."
+[script("powershell.exe", "-NoProfile", "-ExecutionPolicy", "Bypass", "-File")]
+[windows]
+check:
+ & .\scripts\windows_check.ps1 -Mode check
+
# Install repo-local git hooks
install-hooks:
git config core.hooksPath .githooks