Skip to content

Commit 4d301dd

Browse files
authored
Merge pull request #28 from serverscom/switch_new_ubuntu
Update workflows, switch to newer Ubuntu, fix tests
2 parents 39b4a60 + 973daee commit 4d301dd

File tree

2 files changed

+24
-24
lines changed

2 files changed

+24
-24
lines changed

.github/workflows/action_lint.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ name: Lint workflows
99
jobs:
1010
workflow-linting:
1111
name: Workflow Linting
12-
runs-on: ubuntu-20.04
12+
runs-on: ubuntu-24.04
1313
container:
14-
image: rhysd/actionlint:1.6.15
14+
image: rhysd/actionlint:1.7.7
1515
options: --user=0 --entrypoint=/bin/sh
1616
steps:
1717
- name: checkout
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
1919
- name: actionlint
2020
run: /usr/local/bin/actionlint .github/workflows/*

.github/workflows/tests.yaml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,26 @@ name: Test and build
99

1010
jobs:
1111
lint:
12-
runs-on: ubuntu-20.04
12+
runs-on: ubuntu-24.04
1313
steps:
1414
- name: Checkout
15-
uses: actions/checkout@v2
15+
uses: actions/checkout@v4
1616
- name: Install yamllint
1717
run: sudo apt install yamllint
1818
- name: Lint
1919
run: yamllint .
2020

2121
quick_tests:
22-
runs-on: ubuntu-20.04
22+
runs-on: ubuntu-24.04
2323
strategy:
2424
matrix:
2525
python_version:
2626
- "3.13"
2727
steps:
2828
- name: Checkout
29-
uses: actions/checkout@v3
29+
uses: actions/checkout@v4
3030
- name: Set up Python
31-
uses: actions/setup-python@v2
31+
uses: actions/setup-python@v5
3232
with:
3333
python-version: ${{ matrix.python_version }}
3434
- name: Install dependencies
@@ -46,14 +46,14 @@ jobs:
4646
working-directory: ansible_collections/serverscom/sc_api
4747

4848
integration_tests_cloud:
49-
runs-on: ubuntu-20.04
49+
runs-on: ubuntu-24.04
5050
needs: quick_tests
5151
concurrency: API
5252
steps:
5353
- name: Checkout
54-
uses: actions/checkout@v3
54+
uses: actions/checkout@v4
5555
- name: Set up Python
56-
uses: actions/setup-python@v2
56+
uses: actions/setup-python@v5
5757
with:
5858
python-version: "3.13"
5959
- name: Install dependencies
@@ -88,14 +88,14 @@ jobs:
8888
sync
8989
9090
integration_tests_bm:
91-
runs-on: ubuntu-20.04
91+
runs-on: ubuntu-24.04
9292
needs: integration_tests_cloud
9393
concurrency: API
9494
steps:
9595
- name: Checkout
96-
uses: actions/checkout@v3
96+
uses: actions/checkout@v4
9797
- name: Set up Python
98-
uses: actions/setup-python@v2
98+
uses: actions/setup-python@v5
9999
with:
100100
python-version: "3.13"
101101
- name: Install dependencies
@@ -125,14 +125,14 @@ jobs:
125125
sync
126126
127127
integration_tests_l2:
128-
runs-on: ubuntu-20.04
128+
runs-on: ubuntu-24.04
129129
needs: integration_tests_bm
130130
concurrency: API
131131
steps:
132132
- name: Checkout
133-
uses: actions/checkout@v3
133+
uses: actions/checkout@v4
134134
- name: Set up Python
135-
uses: actions/setup-python@v2
135+
uses: actions/setup-python@v5
136136
with:
137137
python-version: "3.13"
138138
- name: Install dependencies
@@ -194,15 +194,15 @@ jobs:
194194
sync
195195
196196
build:
197-
runs-on: ubuntu-20.04
197+
runs-on: ubuntu-24.04
198198
needs: integration_tests_l2
199199
outputs:
200200
version: ${{ steps.version.outputs.version }}
201201
steps:
202202
- name: Checkout
203-
uses: actions/checkout@v3
203+
uses: actions/checkout@v4
204204
- name: Set up Python
205-
uses: actions/setup-python@v2
205+
uses: actions/setup-python@v5
206206
with:
207207
python-version: "3.13"
208208
- name: Install dependencies
@@ -219,7 +219,7 @@ jobs:
219219
id: version
220220
run: |
221221
version=$(grep ^version galaxy.yml|awk '{print $2}')
222-
echo "::set-output name=version::$version"
222+
echo "version=$version" >> "$GITHUB_OUTPUT"
223223
working-directory: ansible_collections/serverscom/sc_api
224224
- name: Print artifact info
225225
run: |
@@ -229,18 +229,18 @@ jobs:
229229
working-directory: ansible_collections/serverscom/sc_api
230230
- name: Save artifact
231231
if: ${{ endsWith(github.ref, steps.version.outputs.version) }}
232-
uses: actions/upload-artifact@v2
232+
uses: actions/upload-artifact@v4
233233
with:
234234
name: sc_api
235235
path: ansible_collections/serverscom/sc_api/serverscom-sc_api-${{ steps.version.outputs.version }}.tar.gz
236236

237237
publish:
238-
runs-on: ubuntu-20.04
238+
runs-on: ubuntu-24.04
239239
needs: build
240240
if: ${{ endsWith(github.ref, needs.build.outputs.version) }}
241241
steps:
242242
- name: Download artifact
243-
uses: actions/download-artifact@v2
243+
uses: actions/download-artifact@v4
244244
with:
245245
name: sc_api
246246
- name: Debug output

0 commit comments

Comments
 (0)