Skip to content

Commit

Permalink
update actions using node12
Browse files Browse the repository at this point in the history
update all the github actions using node12 to version that use node16

- update actions/checkout@v2 -> v3
- update actions/cache@v2 -> v3
- update actions/setup-go@v2 -> v4

cache has been set to disabled for setup-go
due to actions/setup-go#368

Signed-off-by: Akhil Mohan <makhil@vmware.com>
  • Loading branch information
akhilerm committed Jun 8, 2023
1 parent e499a78 commit 806c66f
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 21 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ jobs:

steps:
- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: '1.20'
cache: false

- name: Set env
shell: bash
Expand All @@ -29,7 +30,7 @@ jobs:
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
- name: Cache go modules and build cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/go/pkg/mod
Expand All @@ -39,7 +40,7 @@ jobs:
restore-keys: ${{ runner.os }}-go-

- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
path: src/github.com/kubernetes-sigs/cri-tools

Expand All @@ -62,9 +63,10 @@ jobs:
# Ref: https://github.com/uraimo/run-on-arch-action
steps:
- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: '1.20'
cache: false

- name: Set env
shell: bash
Expand All @@ -73,7 +75,7 @@ jobs:
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
- name: Cache go modules and build cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/go/pkg/mod
Expand All @@ -83,7 +85,7 @@ jobs:
restore-keys: ${{ runner.os }}-go-

- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
path: src/github.com/kubernetes-sigs/cri-tools
fetch-depth: 0
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/containerd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: '1.20'
cache: false

- name: Set env
shell: bash
Expand All @@ -58,7 +59,7 @@ jobs:
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
- name: Cache go modules and build cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/go/pkg/mod
Expand All @@ -68,21 +69,21 @@ jobs:
restore-keys: ${{ runner.os }}-go-

- name: Checkout containerd/containerd ${{ format(matrix.version, '/') }}
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
path: ${{ github.workspace }}/src/github.com/containerd/containerd
repository: containerd/containerd
ref: ${{ format(matrix.version, '/') }}

- name: Checkout Microsoft/hcsshim
uses: actions/checkout@v2
uses: actions/checkout@v3
if: startsWith(matrix.os, 'windows')
with:
repository: Microsoft/hcsshim
path: src/github.com/Microsoft/hcsshim

- name: Checkout cri-tools for this commit
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
path: ${{github.workspace}}/src/github.com/kubernetes-sigs/cri-tools

Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/crio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Install go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: '1.20'
cache: false

- name: Setup environment
shell: bash
Expand All @@ -29,7 +30,7 @@ jobs:
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
- name: Cache go modules and build cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/go/pkg/mod
Expand Down Expand Up @@ -72,7 +73,7 @@ jobs:
sudo systemctl start crio
- name: Checkout cri-tools for this commit
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
path: ${{github.workspace}}/src/github.com/kubernetes-sigs/cri-tools

Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ jobs:

steps:
- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: '1.20'
cache: false

- name: Set env
shell: bash
Expand All @@ -29,7 +30,7 @@ jobs:
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
- name: Cache go modules and build cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/go/pkg/mod
Expand All @@ -39,12 +40,12 @@ jobs:
restore-keys: ${{ runner.os }}-go-

- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
path: src/github.com/kubernetes-sigs/cri-tools

- name: Cache go modules and build cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
~/go/pkg/mod
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,24 @@ jobs:
name: release
runs-on: ubuntu-20.04
steps:
- uses: actions/setup-go@v2
- uses: actions/setup-go@v4
with:
go-version: '1.20'
cache: false

- name: Set env
shell: bash
run: |
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
- uses: actions/cache@v2
- uses: actions/cache@v3
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: go-release-${{ hashFiles('**/go.sum') }}
restore-keys: go-release-
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
path: src/github.com/kubernetes-sigs/cri-tools
Expand Down

0 comments on commit 806c66f

Please sign in to comment.