@@ -9,26 +9,26 @@ name: Test and build
9
9
10
10
jobs :
11
11
lint :
12
- runs-on : ubuntu-20 .04
12
+ runs-on : ubuntu-24 .04
13
13
steps :
14
14
- name : Checkout
15
- uses : actions/checkout@v2
15
+ uses : actions/checkout@v4
16
16
- name : Install yamllint
17
17
run : sudo apt install yamllint
18
18
- name : Lint
19
19
run : yamllint .
20
20
21
21
quick_tests :
22
- runs-on : ubuntu-20 .04
22
+ runs-on : ubuntu-24 .04
23
23
strategy :
24
24
matrix :
25
25
python_version :
26
26
- " 3.13"
27
27
steps :
28
28
- name : Checkout
29
- uses : actions/checkout@v3
29
+ uses : actions/checkout@v4
30
30
- name : Set up Python
31
- uses : actions/setup-python@v2
31
+ uses : actions/setup-python@v5
32
32
with :
33
33
python-version : ${{ matrix.python_version }}
34
34
- name : Install dependencies
@@ -46,14 +46,14 @@ jobs:
46
46
working-directory : ansible_collections/serverscom/sc_api
47
47
48
48
integration_tests_cloud :
49
- runs-on : ubuntu-20 .04
49
+ runs-on : ubuntu-24 .04
50
50
needs : quick_tests
51
51
concurrency : API
52
52
steps :
53
53
- name : Checkout
54
- uses : actions/checkout@v3
54
+ uses : actions/checkout@v4
55
55
- name : Set up Python
56
- uses : actions/setup-python@v2
56
+ uses : actions/setup-python@v5
57
57
with :
58
58
python-version : " 3.13"
59
59
- name : Install dependencies
@@ -88,14 +88,14 @@ jobs:
88
88
sync
89
89
90
90
integration_tests_bm :
91
- runs-on : ubuntu-20 .04
91
+ runs-on : ubuntu-24 .04
92
92
needs : integration_tests_cloud
93
93
concurrency : API
94
94
steps :
95
95
- name : Checkout
96
- uses : actions/checkout@v3
96
+ uses : actions/checkout@v4
97
97
- name : Set up Python
98
- uses : actions/setup-python@v2
98
+ uses : actions/setup-python@v5
99
99
with :
100
100
python-version : " 3.13"
101
101
- name : Install dependencies
@@ -125,14 +125,14 @@ jobs:
125
125
sync
126
126
127
127
integration_tests_l2 :
128
- runs-on : ubuntu-20 .04
128
+ runs-on : ubuntu-24 .04
129
129
needs : integration_tests_bm
130
130
concurrency : API
131
131
steps :
132
132
- name : Checkout
133
- uses : actions/checkout@v3
133
+ uses : actions/checkout@v4
134
134
- name : Set up Python
135
- uses : actions/setup-python@v2
135
+ uses : actions/setup-python@v5
136
136
with :
137
137
python-version : " 3.13"
138
138
- name : Install dependencies
@@ -194,15 +194,15 @@ jobs:
194
194
sync
195
195
196
196
build :
197
- runs-on : ubuntu-20 .04
197
+ runs-on : ubuntu-24 .04
198
198
needs : integration_tests_l2
199
199
outputs :
200
200
version : ${{ steps.version.outputs.version }}
201
201
steps :
202
202
- name : Checkout
203
- uses : actions/checkout@v3
203
+ uses : actions/checkout@v4
204
204
- name : Set up Python
205
- uses : actions/setup-python@v2
205
+ uses : actions/setup-python@v5
206
206
with :
207
207
python-version : " 3.13"
208
208
- name : Install dependencies
@@ -219,7 +219,7 @@ jobs:
219
219
id : version
220
220
run : |
221
221
version=$(grep ^version galaxy.yml|awk '{print $2}')
222
- echo "::set-output name= version:: $version"
222
+ echo "version= $version" >> "$GITHUB_OUTPUT "
223
223
working-directory : ansible_collections/serverscom/sc_api
224
224
- name : Print artifact info
225
225
run : |
@@ -229,18 +229,18 @@ jobs:
229
229
working-directory : ansible_collections/serverscom/sc_api
230
230
- name : Save artifact
231
231
if : ${{ endsWith(github.ref, steps.version.outputs.version) }}
232
- uses : actions/upload-artifact@v2
232
+ uses : actions/upload-artifact@v4
233
233
with :
234
234
name : sc_api
235
235
path : ansible_collections/serverscom/sc_api/serverscom-sc_api-${{ steps.version.outputs.version }}.tar.gz
236
236
237
237
publish :
238
- runs-on : ubuntu-20 .04
238
+ runs-on : ubuntu-24 .04
239
239
needs : build
240
240
if : ${{ endsWith(github.ref, needs.build.outputs.version) }}
241
241
steps :
242
242
- name : Download artifact
243
- uses : actions/download-artifact@v2
243
+ uses : actions/download-artifact@v4
244
244
with :
245
245
name : sc_api
246
246
- name : Debug output
0 commit comments