From 51aadd62b72c2fc8df5e97eb6a42c0904e4c8c8b Mon Sep 17 00:00:00 2001 From: Francis Lavoie Date: Thu, 15 Feb 2024 19:00:03 -0500 Subject: [PATCH] ci: Update Go versions (#172) --- .github/workflows/ci.yml | 15 ++++++++++++++- .github/workflows/lint.yml | 2 +- .github/workflows/release.yml | 2 +- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8b84227..dfe04d0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 2fa683c..ab9a9f0 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 931c9a4..53fa90d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,7 +11,7 @@ jobs: strategy: matrix: os: [ ubuntu-latest ] - go: [ '1.21' ] + go: [ '1.22' ] runs-on: ${{ matrix.os }} steps: