Skip to content

Commit

Permalink
Use Go version associated with containerd release
Browse files Browse the repository at this point in the history
This ensures that there isn't flakes with testing when go version doesn't match the release as experienced in containerd#147

Signed-off-by: James Sturtevant <jstur@microsoft.com>
  • Loading branch information
jsturtevant committed Aug 3, 2023
1 parent 27a503a commit a69c13c
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,23 +94,29 @@ jobs:
strategy:
matrix:
os: [ubuntu-20.04]
containerd: [v1.6.21, v1.7.1]
containerd: [v1.6.22, v1.7.3]

steps:
- name: Checkout extensions
uses: actions/checkout@v3

- uses: actions/setup-go@v4
with:
go-version: '1.20.4'

- name: Checkout containerd
uses: actions/checkout@v3
with:
repository: containerd/containerd
path: src/github.com/containerd/containerd
ref: ${{ matrix.containerd }}

- name: Get Go Version
run: |
go_version=$(awk -F': ' '/GO_VERSION/ {gsub(/"/, "", $2); print $2; exit}' .github/workflows/release.yml)
echo "GO_VERSION=$go_version" >> $GITHUB_ENV
working-directory: src/github.com/containerd/containerd

- uses: actions/setup-go@v4
with:
go-version: '${{ env.GO_VERSION }}'

- name: Install containerd
env:
GOFLAGS: -modcacherw
Expand Down

0 comments on commit a69c13c

Please sign in to comment.