ci: Update Go versions (#172)

This commit is contained in:
Francis Lavoie 2024-02-15 19:00:03 -05:00 committed by GitHub
parent bffc0f1275
commit 51aadd62b7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 16 additions and 3 deletions

View file

@ -17,7 +17,7 @@ jobs:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
go: [ '1.20', '1.21' ]
go: [ '1.21', '1.22' ]
# Set some variables per OS, usable via ${{ matrix.VAR }}
# XCADDY_BIN_PATH: the path to the compiled xcaddy binary, for artifact publishing
@ -108,6 +108,19 @@ jobs:
- name: checkout
uses: actions/checkout@v4
- name: Print Go version and environment
id: vars
shell: bash
run: |
printf "Using go at: $(which go)\n"
printf "Go version: $(go version)\n"
printf "\n\nGo environment:\n\n"
go env
printf "\n\nSystem environment:\n\n"
env
# Calculate the short SHA1 hash of the git commit
echo "short_sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- uses: goreleaser/goreleaser-action@v5
with:
version: latest

View file

@ -17,7 +17,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.21.x'
go-version: '1.22.x'
- name: golangci-lint
uses: golangci/golangci-lint-action@v3

View file

@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
os: [ ubuntu-latest ]
go: [ '1.21' ]
go: [ '1.22' ]
runs-on: ${{ matrix.os }}
steps: