aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-06-07 00:34:53 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-06-07 16:29:45 +0300
commit52e57507e10ee7cb2869156fb1f00e280e614736 (patch)
tree0c9006a6b315a25f88721c8dbc75fa3a85c4379e /.github/workflows
parentb5fba2fdd15aa4cab9621c383f72b57644078fd5 (diff)
ci: tighten windows branch validation
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build-artifacts-manual.yml1
-rw-r--r--.github/workflows/ci.yml22
2 files changed, 14 insertions, 9 deletions
diff --git a/.github/workflows/build-artifacts-manual.yml b/.github/workflows/build-artifacts-manual.yml
index 369d72ff..9602309e 100644
--- a/.github/workflows/build-artifacts-manual.yml
+++ b/.github/workflows/build-artifacts-manual.yml
@@ -34,6 +34,7 @@ on:
permissions:
contents: read
+ actions: write
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 2efe2938..15de5e1b 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -93,11 +93,6 @@ jobs:
with:
targets: x86_64-pc-windows-msvc
- - name: Install Rust tools
- uses: taiki-e/install-action@b550161ef8a7bc4f2a671c0b03a18ac9ccedea1e # v2
- with:
- tool: cargo-nextest
-
- name: Install Zig
uses: mlugg/setup-zig@d1434d08867e3ee9daa34448df10607b98908d29 # v2.2.1
with:
@@ -112,10 +107,19 @@ jobs:
- name: Run Windows checks
shell: pwsh
run: |
- cargo fmt --check
- cargo clippy --bin herdr --locked --target x86_64-pc-windows-msvc -- -D warnings
- cargo nextest run --locked --target x86_64-pc-windows-msvc -E "binary(herdr)" --status-level fail --final-status-level slow --failure-output final --success-output never
- cargo build --locked --target x86_64-pc-windows-msvc
+ $ErrorActionPreference = "Stop"
+ function Invoke-Checked {
+ param([string]$Command, [string[]]$Arguments)
+ & $Command @Arguments
+ if ($LASTEXITCODE -ne 0) {
+ throw "command failed with exit code $LASTEXITCODE`: $Command $($Arguments -join ' ')"
+ }
+ }
+ Invoke-Checked cargo @("fmt", "--check")
+ Invoke-Checked cargo @("clippy", "--bin", "herdr", "--locked", "--target", "x86_64-pc-windows-msvc", "--", "-D", "warnings")
+ Invoke-Checked cargo @("test", "--locked", "--target", "x86_64-pc-windows-msvc", "--bin", "herdr", "windows_")
+ Invoke-Checked cargo @("test", "--locked", "--target", "x86_64-pc-windows-msvc", "--bin", "herdr", "server::client_transport::tests")
+ Invoke-Checked cargo @("build", "--locked", "--target", "x86_64-pc-windows-msvc")
- name: Smoke ConPTY pane
shell: pwsh