Skip to content

Commit 598607b

Browse files
committed
Fix Windows CI runner target
1 parent 7a2b07a commit 598607b

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.github/workflows/elixir.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ jobs:
152152
run: mix test
153153

154154
windows_test:
155-
runs-on: windows-latest
155+
runs-on: windows-2022
156156
name: Windows Test on OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
157157
strategy:
158158
matrix:

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1717
- **Syntax normalization**: Layer 3 consumes the shared metadata directly, removing duplicated byte math around HTML quoting (#6).
1818

1919
### CI
20-
- **Windows coverage**: Introduced a `windows-latest` PowerShell job to the GitHub Actions matrix to run `mix deps.get`, `mix compile --warnings-as-errors`, and `mix test`, ensuring CRLF regressions are caught ahead of releases (#7).
20+
- **Windows coverage**: Introduced a `windows-2022` PowerShell job to the GitHub Actions matrix to run `mix deps.get`, `mix compile --warnings-as-errors`, and `mix test`, ensuring CRLF regressions are caught ahead of releases (#7).
2121

2222
## [0.1.7] - 2025-10-27
2323

examples/windows_ci_examples.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
defmodule WindowsCIExamples do
99
@moduledoc """
1010
Useful helpers for verifying JsonRemedy's Windows CI coverage:
11-
- Confirms the workflow includes a `windows-latest` runner with PowerShell.
11+
- Confirms the workflow includes a `windows-2022` runner with PowerShell.
1212
- Prints the exact commands the CI executes so contributors can mirror them.
1313
"""
1414

@@ -28,7 +28,7 @@ defmodule WindowsCIExamples do
2828
IO.puts("===================================================")
2929

3030
workflow = File.read!(@workflow_path)
31-
windows_job_present = String.contains?(workflow, "runs-on: windows-latest")
31+
windows_job_present = String.contains?(workflow, "runs-on: windows-2022")
3232
uses_pwsh = String.contains?(workflow, "shell: pwsh")
3333

3434
IO.puts("Windows runner configured? #{windows_job_present}")

test/unit/ci_configuration_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ defmodule JsonRemedy.CIConfigurationTest do
66
test "workflow defines a Windows test job" do
77
workflow = File.read!(@workflow_path)
88

9-
assert workflow =~ "runs-on: windows-latest"
9+
assert workflow =~ "runs-on: windows-2022"
1010
assert workflow =~ "shell: pwsh"
1111
assert workflow =~ "mix test"
1212
end

0 commit comments

Comments
 (0)