chore(go): bump go to 1.22

This commit is contained in:
Jan Rundshagen 2024-07-08 15:15:43 +02:00 committed by Jan O. Rundshagen
parent 3c3749d9a7
commit 95cbb7ff4b
8 changed files with 53 additions and 205 deletions

View file

@ -1,23 +1,23 @@
name: Greetings
# name: Greetings
on:
# Runs in the context of the target (containrrr/watchtower) repository, and as such has access to GITHUB_TOKEN
pull_request_target:
types: [opened]
issues:
types: [opened]
# on:
# # Runs in the context of the target (beatkind/watchtower) repository, and as such has access to GITHUB_TOKEN
# pull_request_target:
# types: [opened]
# issues:
# types: [opened]
jobs:
greeting:
runs-on: ubuntu-latest
steps:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: >
Hi there! 👋🏼
As you're new to this repo, we'd like to suggest that you read our [code of conduct](https://github.com/containrrr/.github/blob/master/CODE_OF_CONDUCT.md)
as well as our [contribution guidelines](https://github.com/containrrr/watchtower/blob/master/CONTRIBUTING.md).
Thanks a bunch for opening your first issue! 🙏
pr-message: >
Congratulations on opening your first pull request! We'll get back to you as soon as possible. In the meantime, please make sure you've updated the documentation to reflect your changes and have added test automation as needed. Thanks! 🙏🏼
# jobs:
# greeting:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/first-interaction@v1
# with:
# repo-token: ${{ secrets.GITHUB_TOKEN }}
# issue-message: >
# Hi there! 👋🏼
# As you're new to this repo, we'd like to suggest that you read our [code of conduct](https://github.com/beatkind/.github/blob/master/CODE_OF_CONDUCT.md)
# as well as our [contribution guidelines](https://github.com/beatkind/watchtower/blob/master/CONTRIBUTING.md).
# Thanks a bunch for opening your first issue! 🙏
# pr-message: >
# Congratulations on opening your first pull request! We'll get back to you as soon as possible. In the meantime, please make sure you've updated the documentation to reflect your changes and have added test automation as needed. Thanks! 🙏🏼

View file

@ -20,7 +20,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.20.x
go-version: 1.22.x
- name: Build tplprev
run: scripts/build-tplprev.sh
- name: Setup python

View file

@ -18,7 +18,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.20.x
go-version: 1.22.x
- uses: dominikh/staticcheck-action@fe1dd0c3658873b46f8c9bb3291096a617310ca6 # v1.3.1
with:
version: "2023.1.6"
@ -29,7 +29,7 @@ jobs:
fail-fast: false
matrix:
go-version:
- 1.20.x
- 1.22.x
platform:
- macos-latest
- windows-latest
@ -43,7 +43,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.20.x
go-version: 1.22.x
- name: Run tests
run: |
go test -v -coverprofile coverage.out -covermode atomic ./...
@ -62,7 +62,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.20.x
go-version: 1.22.x
- name: Build
uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6
with:

View file

@ -16,7 +16,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.20.x
go-version: 1.22.x
- name: Build
run: ./build.sh
test:
@ -26,7 +26,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.20.x
go-version: 1.22.x
- name: Test
run: go test -v -coverprofile coverage.out -covermode atomic ./...
- name: Publish coverage

View file

@ -19,10 +19,10 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.20.x
go-version: 1.22.x
- uses: dominikh/staticcheck-action@fe1dd0c3658873b46f8c9bb3291096a617310ca6 # v1.3.1
with:
version: "2022.1.1"
version: "latest"
install-go: "false" # StaticCheck uses go v1.17 which does not support `any`
test:
@ -30,7 +30,7 @@ jobs:
strategy:
matrix:
go-version:
- 1.20.x
- 1.22.x
platform:
- ubuntu-latest
- macos-latest
@ -44,7 +44,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.20.x
go-version: 1.22.x
- name: Run tests
run: |
go test ./... -coverprofile coverage.out
@ -66,7 +66,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.20.x
go-version: 1.22.x
- name: Login to Docker Hub
uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446 # v3
with: