Skip to content

Commit 87492af

Browse files
authored
chore(ci): use windows-latest instead of specific version in tests (#1902)
So that we don't have to maintain the version of Windows, like suggested in #1896.
1 parent ba1f620 commit 87492af

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/build.main.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import io.github.typesafegithub.workflows.actions.actions.Checkout
1717
import io.github.typesafegithub.workflows.actions.actions.SetupJava
1818
import io.github.typesafegithub.workflows.actions.gradle.ActionsSetupGradle
1919
import io.github.typesafegithub.workflows.domain.RunnerType.UbuntuLatest
20-
import io.github.typesafegithub.workflows.domain.RunnerType.Windows2022
20+
import io.github.typesafegithub.workflows.domain.RunnerType.WindowsLatest
2121
import io.github.typesafegithub.workflows.domain.triggers.PullRequest
2222
import io.github.typesafegithub.workflows.domain.triggers.Push
2323
import io.github.typesafegithub.workflows.dsl.expressions.Contexts
@@ -38,7 +38,7 @@ workflow(
3838
),
3939
sourceFile = __FILE__,
4040
) {
41-
listOf(UbuntuLatest, Windows2022).forEach { runnerType ->
41+
listOf(UbuntuLatest, WindowsLatest).forEach { runnerType ->
4242
job(
4343
id = "build-for-${runnerType::class.simpleName}",
4444
runsOn = runnerType,

.github/workflows/build.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ jobs:
6666
env:
6767
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
6868
run: './gradlew build'
69-
build-for-Windows2022:
70-
runs-on: 'windows-2022'
69+
build-for-WindowsLatest:
70+
runs-on: 'windows-latest'
7171
needs:
7272
- 'check_yaml_consistency'
7373
steps:

0 commit comments

Comments
 (0)