Skip to content

Commit 37d0f59

Browse files
committed
(maint) Hardcodes Ubuntu 20.04 GHA runners
The ubuntu-latest GitHub Actions runner currently translates to Ubuntu 20.04, but will migrate to 22.04 next year: actions/runner-images#6399 Because platform translation is necessary in the presuit.rb file, this commit changes all instances of "ubuntu-latest" in our GitHub Actions configuration to "ubuntu-20.04".
1 parent 8e9a670 commit 37d0f59

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

.github/actions/presuite.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def initialize_beaker
3131

3232
def beaker_platform
3333
{
34-
'ubuntu-latest' => 'ubuntu2004-64a',
34+
'ubuntu-20.04' => 'ubuntu2004-64a',
3535
'macos-latest' => 'osx11-64a',
3636
'windows-2016' => 'windows2016-64a',
3737
'windows-2019' => 'windows2019-64a'

.github/workflows/acceptance_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
name: Platform
1515
strategy:
1616
matrix:
17-
os: [ windows-2019, ubuntu-latest, macos-latest ]
17+
os: [ windows-2019, ubuntu-20.04, macos-latest ]
1818
runs-on: ${{ matrix.os }}
1919
env:
2020
BEAKER_debug: true

.github/workflows/checks.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111

1212
jobs:
1313
rubocop_checks:
14-
runs-on: ubuntu-latest
14+
runs-on: ubuntu-20.04
1515
name: RuboCop
1616
steps:
1717
- name: Checkout current PR
@@ -25,7 +25,7 @@ jobs:
2525
- run: bundle exec rubocop --parallel
2626

2727
rtc:
28-
runs-on: ubuntu-latest
28+
runs-on: ubuntu-20.04
2929
name: RuboCop TODO
3030
steps:
3131
- uses: actions/checkout@v1
@@ -38,7 +38,7 @@ jobs:
3838
FORCE_ERROR_EXIT: true
3939

4040
commit_checks:
41-
runs-on: ubuntu-latest
41+
runs-on: ubuntu-20.04
4242
name: commit message
4343
steps:
4444
- name: Checkout current PR

.github/workflows/coverage.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
coverage_checks:
11-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-20.04
1212
name: coverage
1313
steps:
1414
- name: Checkout current PR

.github/workflows/snyk_monitor.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
jobs:
88
snyk_monitor:
99
if: ${{ github.repository_owner == 'puppetlabs' }}
10-
runs-on: ubuntu-latest
10+
runs-on: ubuntu-20.04
1111
name: Snyk Monitor
1212
steps:
1313
- name: Checkout current PR

.github/workflows/unit_tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- '3.0'
2424
- '3.2.0-preview2'
2525
- 'jruby-9.3.7.0'
26-
runs-on: ubuntu-latest
26+
runs-on: ubuntu-20.04
2727
steps:
2828
- name: Checkout current PR
2929
uses: actions/checkout@v2

0 commit comments

Comments
 (0)