Skip to content

Commit 68c1758

Browse files
Merge pull request #662 from joelanford/gh-actions-go-1-16
Consistently use latest go1.16 in all workflows
2 parents 7e5150e + afc4448 commit 68c1758

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

.github/workflows/build.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v2
16+
- uses: actions/setup-go@v2
17+
with:
18+
go-version: '~1.16'
1619
- run: make build

.github/workflows/go-apidiff.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Set up Go
1818
uses: actions/setup-go@v2
1919
with:
20-
go-version: 1.16
20+
go-version: '~1.16'
2121
id: go
2222
- name: Check out code into the Go module directory
2323
uses: actions/checkout@v2

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ jobs:
1212
runs-on: ubuntu-20.04
1313
steps:
1414
- uses: actions/checkout@v2
15+
- uses: actions/setup-go@v2
16+
with:
17+
go-version: '~1.16'
1518
- run: |
1619
. /etc/os-release
1720
echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/ /" | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list

.github/workflows/unit.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v2
17+
- uses: actions/setup-go@v2
18+
with:
19+
go-version: '~1.16'
1720
- run: make unit
1821
- run: sed -i'' "s:^github.com/$GITHUB_REPOSITORY/::" coverage.out
1922
- run: .github/workflows/codecov.sh -Z -f coverage.out

0 commit comments

Comments
 (0)