Skip to content

Commit 41a275e

Browse files
committed
(MODULES-11374) Update GitHub Action Ubuntu runner
GitHub is deprecating Ubuntu 18.04 runners on April 1, 2023. This commit switches all Ubuntu 18.04 runners used in GitHub Actions to Ubuntu 20.04. https://github.blog/changelog/2022-08-09-github-actions-the-ubuntu-18-04-actions-runner-image-is-being-deprecated-and-will-be-removed-by-12-1-22/ This commit also updates all instances of the actions/checkout@v2 to actions/checkout@v3 in perparation for the former's deprecation as part of the NodeJS deprecation. https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/
1 parent 057188e commit 41a275e

6 files changed

+14
-14
lines changed

.github/workflows/auto_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
echo STEP_START=$(date +%s) >> $GITHUB_ENV
2929
- name: "Checkout Source"
3030
if: ${{ github.repository_owner == 'puppetlabs' }}
31-
uses: actions/checkout@v2
31+
uses: actions/checkout@v3
3232
with:
3333
fetch-depth: 0
3434
persist-credentials: false

.github/workflows/dispatch_unit_tests_with_nightly_puppet_gem.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ jobs:
7676

7777
strategy:
7878
matrix:
79-
os: [ 'ubuntu-18.04', 'macos-latest', 'windows-2019' ]
79+
os: [ 'ubuntu-20.04', 'macos-latest', 'windows-2019' ]
8080
include:
81-
- os: 'ubuntu-18.04'
81+
- os: 'ubuntu-20.04'
8282
os_type: 'Linux'
8383
env_set_cmd: 'export '
8484
gem_file_postfix: '.gem'
@@ -94,7 +94,7 @@ jobs:
9494
runs-on: ${{ matrix.os }}
9595
steps:
9696
- name: Checkout code
97-
uses: actions/checkout@v2
97+
uses: actions/checkout@v3
9898

9999
- name: Install ruby version ${{ env.ruby_version }}
100100
uses: ruby/setup-ruby@v1

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-20.04
1010
steps:
1111
- name: Checkout code
12-
uses: actions/checkout@v2
12+
uses: actions/checkout@v3
1313
with:
1414
ref: ${{ github.ref }}
1515
clean: true
@@ -33,7 +33,7 @@ jobs:
3333
runs-on: ubuntu-20.04
3434
steps:
3535
- name: Checkout code
36-
uses: actions/checkout@v2
36+
uses: actions/checkout@v3
3737
with:
3838
ref: ${{ github.ref }}
3939
clean: true

.github/workflows/static_code_analysis.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
ruby_version: 2.6
1616
extra_checks: check:symlinks check:git_ignore check:dot_underscore check:test_file
1717

18-
runs-on: 'ubuntu-18.04'
18+
runs-on: 'ubuntu-20.04'
1919
steps:
2020
- name: Checkout current PR code
21-
uses: actions/checkout@v2
21+
uses: actions/checkout@v3
2222
with:
2323
fetch-depth: 0
2424

.github/workflows/unit_tests_with_nightly_puppet_gem.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ jobs:
1212
name: ${{ matrix.os_type }} / Puppet${{ matrix.puppet_version }} gem / Ruby ${{ matrix.ruby }}
1313
strategy:
1414
matrix:
15-
os: [ 'ubuntu-18.04', 'macos-latest', 'windows-2019' ]
15+
os: [ 'ubuntu-20.04', 'macos-latest', 'windows-2019' ]
1616
puppet_version: [ 6, 7 ]
1717
include:
1818
- puppet_version: 6
1919
ruby: 2.5
2020
- puppet_version: 7
2121
ruby: 2.7
2222

23-
- os: 'ubuntu-18.04'
23+
- os: 'ubuntu-20.04'
2424
os_type: 'Linux'
2525
env_set_cmd: 'export '
2626
gem_file: 'puppet-latest.gem'
@@ -36,7 +36,7 @@ jobs:
3636
runs-on: ${{ matrix.os }}
3737
steps:
3838
- name: Checkout current PR code
39-
uses: actions/checkout@v2
39+
uses: actions/checkout@v3
4040

4141
- name: Install ruby version ${{ matrix.ruby }}
4242
uses: ruby/setup-ruby@v1

.github/workflows/unit_tests_with_released_puppet_gem.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ jobs:
1212
name: ${{ matrix.os_type }} / Puppet${{ matrix.puppet_version }} gem / Ruby ${{ matrix.ruby }}
1313
strategy:
1414
matrix:
15-
os: [ 'ubuntu-18.04', 'macos-latest', 'windows-2019' ]
15+
os: [ 'ubuntu-20.04', 'macos-latest', 'windows-2019' ]
1616
puppet_version: [ 6, 7 ]
1717
include:
1818
- puppet_version: 6
1919
ruby: 2.5
2020
- puppet_version: 7
2121
ruby: 2.7
2222

23-
- os: 'ubuntu-18.04'
23+
- os: 'ubuntu-20.04'
2424
os_type: 'Linux'
2525
- os: 'macos-latest'
2626
os_type: 'macOS'
@@ -32,7 +32,7 @@ jobs:
3232
PUPPET_GEM_VERSION: ~> ${{ matrix.puppet_version }}.0
3333
steps:
3434
- name: Checkout current PR code
35-
uses: actions/checkout@v2
35+
uses: actions/checkout@v3
3636

3737
- name: Install ruby version ${{ matrix.ruby }}
3838
uses: ruby/setup-ruby@v1

0 commit comments

Comments
 (0)