Skip to content

Commit

Permalink
remove windows-2016 runner label support which was dropped in 2022
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysd committed May 22, 2024
1 parent b879f2b commit 4c3740e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
6 changes: 3 additions & 3 deletions docs/checks.md
Original file line number Diff line number Diff line change
Expand Up @@ -1572,15 +1572,15 @@ jobs:
Output:
```
test.yaml:10:13: label "linux-latest" is unknown. available labels are "windows-latest", "windows-2022", "windows-2019", "windows-2016", "ubuntu-latest", ... [runner-label]
test.yaml:10:13: label "linux-latest" is unknown. available labels are "windows-latest", "windows-2022", "windows-2019", "ubuntu-latest", ... [runner-label]
|
10 | - linux-latest
| ^~~~~~~~~~~~
test.yaml:16:13: label "gpu" is unknown. available labels are "windows-latest", "windows-2022", "windows-2019", "windows-2016", "ubuntu-latest", ... [runner-label]
test.yaml:16:13: label "gpu" is unknown. available labels are "windows-latest", "windows-2022", "windows-2019", "ubuntu-latest", ... [runner-label]
|
16 | - gpu
| ^~~
test.yaml:23:14: label "macos-10.13" is unknown. available labels are "windows-latest", "windows-2022", "windows-2019", "windows-2016", "ubuntu-latest", ... [runner-label]
test.yaml:23:14: label "macos-10.13" is unknown. available labels are "windows-latest", "windows-2022", "windows-2019", "ubuntu-latest", ... [runner-label]
|
23 | runs-on: macos-10.13
| ^~~~~~~~~~~
Expand Down
5 changes: 1 addition & 4 deletions rule_runner_label.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ const (
compatMacOS140
compatMacOS140L
compatMacOS140XL
compatWindows2016
compatWindows2019
compatWindows2022
)
Expand All @@ -33,7 +32,6 @@ var allGitHubHostedRunnerLabels = []string{
"windows-latest-8-cores",
"windows-2022",
"windows-2019",
"windows-2016",
"ubuntu-latest",
"ubuntu-latest-4-cores",
"ubuntu-latest-8-cores",
Expand Down Expand Up @@ -112,10 +110,9 @@ var defaultRunnerOSCompats = map[string]runnerOSCompat{
"windows-latest-8-cores": compatWindows2022,
"windows-2022": compatWindows2022,
"windows-2019": compatWindows2019,
"windows-2016": compatWindows2016,
"linux": compatUbuntu2404 | compatUbuntu2204 | compatUbuntu2004, // Note: "linux" does not always indicate Ubuntu. It might be Fedora or Arch or ...
"macos": compatMacOS140 | compatMacOS140L | compatMacOS140XL | compatMacOS130 | compatMacOS130L | compatMacOS130XL | compatMacOS120 | compatMacOS120L | compatMacOS120XL | compatMacOS110,
"windows": compatWindows2022 | compatWindows2019 | compatWindows2016,
"windows": compatWindows2022 | compatWindows2019,
}

// RuleRunnerLabel is a rule to check runner label like "ubuntu-latest". There are two types of
Expand Down

0 comments on commit 4c3740e

Please sign in to comment.