Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
allow additional labels for self-hosted runners
  • Loading branch information
ngraef committed Aug 26, 2020
commit 9ad5aba18d337be3822cad0af6eac5d0694e3601
6 changes: 4 additions & 2 deletions src/schemas/json/github-workflow.json
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,7 @@
{
"$comment": "https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#self-hosted-runners",
"type": "array",
"oneOf": [
"anyOf": [
{
"items": [
{
Expand Down Expand Up @@ -988,7 +988,9 @@
]
}
],
"additionalItems": false
"additionalItems": {
"type": "string"
}
}
]
},
Expand Down
56 changes: 56 additions & 0 deletions src/test/github-workflow/runs-on.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,62 @@
"run": "echo 'Hello from ${{ runner.os }}'"
}
]
},
"self-hosted": {
"runs-on": "self-hosted",
"steps": [
{
"run": "echo 'Hello from self-hosted ${{ runner.os }}'"
}
]
},
"self-hosted-array": {
"runs-on": ["self-hosted"],
"steps": [
{
"run": "echo 'Hello from self-hosted ${{ runner.os }}'"
}
]
},
"self-hosted-linux": {
"runs-on": ["self-hosted", "linux"],
"steps": [
{
"run": "echo 'Hello from self-hosted ${{ runner.os }}'"
}
]
},
"self-hosted-x64": {
"runs-on": ["self-hosted", "x64"],
"steps": [
{
"run": "echo 'Hello from self-hosted ${{ runner.os }}'"
}
]
},
"self-hosted-linux-x64": {
"runs-on": ["self-hosted", "linux", "x64"],
"steps": [
{
"run": "echo 'Hello from self-hosted ${{ runner.os }}'"
}
]
},
"self-hosted-custom": {
"runs-on": ["self-hosted", "x86", "windows", "gpu", "large"],
"steps": [
{
"run": "echo 'Hello from self-hosted ${{ runner.os }}'"
}
]
},
"self-hosted-custom-2": {
"runs-on": ["self-hosted", "gpu", "on-prem"],
"steps": [
{
"run": "echo 'Hello from self-hosted ${{ runner.os }}'"
}
]
}
}
}