Skip to content

Commit

Permalink
Update GitHub actions CI workflow
Browse files Browse the repository at this point in the history
Update actions runner OS image to Ubuntu 22.04.
Update actions/checkout and actions/setup-go packages from v2 to v3.

Signed-off-by: Austin Vazquez <macedonv@amazon.com>
  • Loading branch information
austinvazquez committed Oct 27, 2022
1 parent 724eb82 commit 08db267
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ jobs:
#
project:
name: Project Checks
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
timeout-minutes: 5

steps:
#
# Install Go
#
- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: '1.17.x'

Expand All @@ -37,13 +37,13 @@ jobs:
# Checkout repos
#
- name: Checkout cgroups
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
path: src/github.com/containerd/cgroups
fetch-depth: 25

- name: Checkout common project repo
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
repository: containerd/project
path: src/github.com/containerd/project
Expand Down Expand Up @@ -87,12 +87,13 @@ jobs:

strategy:
matrix:
os: [ubuntu-18.04, ubuntu-22.04]
# Ubuntu-20.04 has cgroups v1 default; Ubuntu-22.04 has cgroups v2 default.
os: [ubuntu-20.04, ubuntu-22.04]

runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: '1.17.x'

Expand All @@ -103,7 +104,7 @@ jobs:
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
- name: Checkout cgroups
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
path: src/github.com/containerd/cgroups

Expand Down

0 comments on commit 08db267

Please sign in to comment.