Skip to content

Commit

Permalink
.github: run tests on go 1.19, 1.20 and 1.21
Browse files Browse the repository at this point in the history
Sicne we require go v1.19 now at minimum, we cannot run tests on go
v1.17 or v1.18 anymore.

Since there are more recent versions of Go available as well, we start
testing the packages on those versions in addition to 1.19.
  • Loading branch information
lbajolet-hashicorp authored and nywilken committed May 17, 2024
1 parent fd22160 commit 17858a9
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .github/workflows/go-getter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,15 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
# Note: while strictly speaking quoting the versions is not necessary
# however for versions like 1.10, 1.20, 1.30, etc. without quotes, YAML
# renders these versions as floats, so the least-significant 0 gets
# dropped from the version number, so those become like 1.1, 1.2, 1.3, etc.
# To avoid the issue, we quote them systematically.
go-version:
- 1.17
- 1.18
- 1.19
- "1.19"
- "1.20"
- "1.21"
directory:
- s3
- gcs
Expand Down Expand Up @@ -110,9 +115,9 @@ jobs:
strategy:
matrix:
go-version:
- 1.17
- 1.18
- 1.19
- "1.19"
- "1.20"
- "1.21"
directory:
- s3
- gcs
Expand Down Expand Up @@ -190,9 +195,9 @@ jobs:
strategy:
matrix:
go-version:
- 1.17
- 1.18
- 1.19
- "1.19"
- "1.20"
- "1.21"
permissions:
id-token: write
contents: read
Expand Down

0 comments on commit 17858a9

Please sign in to comment.