Skip to content

Commit 0a36a6e

Browse files
authored
[github] support ubuntu-20.04 runner (#1090)
* support ubuntu 20 runner * test all runners
1 parent 2953d05 commit 0a36a6e

2 files changed

Lines changed: 86 additions & 0 deletions

File tree

src/schemas/json/github-workflow.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -878,6 +878,7 @@
878878
"self-hosted",
879879
"ubuntu-16.04",
880880
"ubuntu-18.04",
881+
"ubuntu-20.04",
881882
"ubuntu-latest",
882883
"windows-latest",
883884
"windows-2019"
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
{
2+
"name": "Test runs-on",
3+
"on": [
4+
"push"
5+
],
6+
"jobs": {
7+
"ubuntu": {
8+
"runs-on": "ubuntu-latest",
9+
"steps": [
10+
{
11+
"run": "echo 'Hello from ${{ runner.os }}'"
12+
}
13+
]
14+
},
15+
"ubuntu-20": {
16+
"runs-on": "ubuntu-20.04",
17+
"steps": [
18+
{
19+
"run": "echo 'Hello from ${{ runner.os }}'"
20+
}
21+
]
22+
},
23+
"ubuntu-18": {
24+
"runs-on": "ubuntu-18.04",
25+
"steps": [
26+
{
27+
"run": "echo 'Hello from ${{ runner.os }}'"
28+
}
29+
]
30+
},
31+
"ubuntu-16": {
32+
"runs-on": "ubuntu-16.04",
33+
"steps": [
34+
{
35+
"run": "echo 'Hello from ${{ runner.os }}'"
36+
}
37+
]
38+
},
39+
"macos": {
40+
"runs-on": "macos-latest",
41+
"steps": [
42+
{
43+
"run": "echo 'Hello from ${{ runner.os }}'"
44+
}
45+
]
46+
},
47+
"macos-catalina": {
48+
"runs-on": "macos-10.15",
49+
"steps": [
50+
{
51+
"run": "echo 'Hello from ${{ runner.os }}'"
52+
}
53+
]
54+
},
55+
"windows": {
56+
"runs-on": "windows-latest",
57+
"steps": [
58+
{
59+
"run": "echo 'Hello from ${{ runner.os }}'"
60+
}
61+
]
62+
},
63+
"windows-2019": {
64+
"runs-on": "windows-2019",
65+
"steps": [
66+
{
67+
"run": "echo 'Hello from ${{ runner.os }}'"
68+
}
69+
]
70+
},
71+
"matrix": {
72+
"runs-on": "${{ matrix.os }}",
73+
"strategy": {
74+
"matrix": {
75+
"os": ["ubuntu-20.04", "ubuntu-18.04", "ubuntu-16.04"]
76+
}
77+
},
78+
"steps": [
79+
{
80+
"run": "echo 'Hello from ${{ runner.os }}'"
81+
}
82+
]
83+
}
84+
}
85+
}

0 commit comments

Comments
 (0)