workflows: Use ubuntu-22.04 for tests.yml

github is dropping support for 20.04 on 4/1/2025 so move to the next
stable version.

Also, back in commit e8ae7e7cae we removed
use of ubuntu-latest because it can change unexpectedly. Some other uses
crept back in, so this changes those to use 22.04 as well.
This commit is contained in:
Brian C. Lane 2025-02-11 10:16:06 -08:00 committed by Tomáš Hozza
parent 5bfd06e4ce
commit 53d50e875d

View file

@ -13,7 +13,7 @@ on:
jobs: jobs:
unit-tests: unit-tests:
name: "🛃 Unit tests" name: "🛃 Unit tests"
runs-on: ubuntu-20.04 runs-on: ubuntu-22.04
container: container:
image: registry.fedoraproject.org/fedora:40 image: registry.fedoraproject.org/fedora:40
@ -46,7 +46,7 @@ jobs:
db-tests: db-tests:
name: "🗄 DB tests" name: "🗄 DB tests"
runs-on: ubuntu-20.04 runs-on: ubuntu-22.04
services: services:
postgres: postgres:
# 12 is used in deployments # 12 is used in deployments
@ -85,7 +85,7 @@ jobs:
python-lint: python-lint:
name: "🐍 Lint python scripts" name: "🐍 Lint python scripts"
runs-on: ubuntu-latest runs-on: ubuntu-22.04
container: container:
image: registry.fedoraproject.org/fedora:40 image: registry.fedoraproject.org/fedora:40
steps: steps:
@ -104,7 +104,7 @@ jobs:
golang-lint: golang-lint:
name: "⌨ Golang Lint" name: "⌨ Golang Lint"
runs-on: ubuntu-latest runs-on: ubuntu-22.04
steps: steps:
- name: Set up Go 1.22 - name: Set up Go 1.22
uses: actions/setup-go@v5 uses: actions/setup-go@v5
@ -133,7 +133,7 @@ jobs:
packit-config-lint: packit-config-lint:
name: "📦 Packit config lint" name: "📦 Packit config lint"
runs-on: ubuntu-latest runs-on: ubuntu-22.04
container: container:
image: registry.fedoraproject.org/fedora:latest image: registry.fedoraproject.org/fedora:latest
steps: steps:
@ -151,7 +151,7 @@ jobs:
prepare: prepare:
name: "🔍 Check source preparation" name: "🔍 Check source preparation"
runs-on: ubuntu-20.04 runs-on: ubuntu-22.04
steps: steps:
- name: Set up Go 1.22 - name: Set up Go 1.22
@ -179,7 +179,7 @@ jobs:
check-snapshots: check-snapshots:
name: "🔍 Check for valid snapshot urls" name: "🔍 Check for valid snapshot urls"
runs-on: ubuntu-20.04 runs-on: ubuntu-22.04
steps: steps:
- name: Check out code into the Go module directory - name: Check out code into the Go module directory
uses: actions/checkout@v4 uses: actions/checkout@v4
@ -190,7 +190,7 @@ jobs:
check-runners: check-runners:
name: "🔍 Check for missing or unused runner repos" name: "🔍 Check for missing or unused runner repos"
runs-on: ubuntu-20.04 runs-on: ubuntu-22.04
steps: steps:
- name: Check out code into the Go module directory - name: Check out code into the Go module directory
uses: actions/checkout@v4 uses: actions/checkout@v4
@ -201,7 +201,7 @@ jobs:
shellcheck: shellcheck:
name: "🐚 Shellcheck" name: "🐚 Shellcheck"
runs-on: ubuntu-20.04 runs-on: ubuntu-22.04
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
@ -232,7 +232,7 @@ jobs:
rpmlint: rpmlint:
name: "📦 RPMlint" name: "📦 RPMlint"
runs-on: ubuntu-20.04 runs-on: ubuntu-22.04
container: registry.fedoraproject.org/fedora:40 container: registry.fedoraproject.org/fedora:40
steps: steps:
- name: Install dependencies - name: Install dependencies
@ -252,7 +252,7 @@ jobs:
gitlab-ci-helper: gitlab-ci-helper:
name: "Gitlab CI trigger helper" name: "Gitlab CI trigger helper"
runs-on: ubuntu-latest runs-on: ubuntu-22.04
env: env:
SKIP_CI: ${{ (github.event.pull_request.draft == true || contains(github.event.pull_request.labels.*.name, 'WIP')) && !contains(github.event.pull_request.labels.*.name, 'WIP+test') }} SKIP_CI: ${{ (github.event.pull_request.draft == true || contains(github.event.pull_request.labels.*.name, 'WIP')) && !contains(github.event.pull_request.labels.*.name, 'WIP+test') }}
steps: steps:
@ -266,7 +266,7 @@ jobs:
kube-linter: kube-linter:
name: "🎀 kube-linter" name: "🎀 kube-linter"
runs-on: ubuntu-latest runs-on: ubuntu-22.04
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: redhat-actions/oc-installer@v1 - uses: redhat-actions/oc-installer@v1
@ -282,7 +282,7 @@ jobs:
cloud-cleaner-is-enabled: cloud-cleaner-is-enabled:
name: "🧹 cloud-cleaner-is-enabled" name: "🧹 cloud-cleaner-is-enabled"
runs-on: ubuntu-latest runs-on: ubuntu-22.04
steps: steps:
- name: Check if workflow is enabled - name: Check if workflow is enabled
run: | run: |