From a0d4c1dc2be3881661bf832e4a3d0a3f8b979661 Mon Sep 17 00:00:00 2001 From: Andreas Fritzler Date: Wed, 24 Apr 2024 09:52:01 +0200 Subject: [PATCH] Bump golang to 1.22.2 - Bump golang to 1.22.2 - Bump golangci-lint to 1.57.2 - Update GH workflows --- .github/dependabot.yml | 2 -- .github/workflows/lint.yml | 2 +- .github/workflows/release-drafter.yml | 7 ++----- .github/workflows/size-label.yml | 11 ++++++++--- Makefile | 4 ++-- go.mod | 2 +- go.sum | 1 + 7 files changed, 15 insertions(+), 14 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index b1de4ab..4839036 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -5,13 +5,11 @@ updates: directory: "/" schedule: interval: "weekly" - open-pull-requests-limit: 10 reviewers: - "ironcore-dev/core" - package-ecosystem: "github-actions" directory: "/" schedule: interval: "weekly" - open-pull-requests-limit: 10 reviewers: - "ironcore-dev/core" diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index ff5cecf..79bf4cd 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -17,4 +17,4 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v4 with: - version: v1.55.1 + version: v1.57.2 diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 3a3c5a9..327c5ab 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -4,11 +4,9 @@ on: push: branches: - main - pull_request: + pull_request_target: types: [ opened, reopened, synchronize ] - -permissions: - contents: read + workflow_dispatch: jobs: update_release_draft: @@ -23,7 +21,6 @@ jobs: # Drafts your next Release notes as Pull Requests are merged into "main" - uses: release-drafter/release-drafter@v6 with: - disable-releaser: github.ref != 'refs/heads/main' config-name: release-drafter.yml env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/size-label.yml b/.github/workflows/size-label.yml index 3138439..992a382 100644 --- a/.github/workflows/size-label.yml +++ b/.github/workflows/size-label.yml @@ -1,7 +1,7 @@ -name: "Size Label" +name: Size Label on: - pull_request: + pull_request_target: types: - opened - edited @@ -12,4 +12,9 @@ jobs: permissions: contents: read pull-requests: write - uses: ironcore-dev/.github/.github/workflows/size-label.yml@main \ No newline at end of file + runs-on: ubuntu-latest + steps: + - name: size-label + uses: pascalgn/size-label-action@v0.5.2 + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" diff --git a/Makefile b/Makefile index f595778..efd7f20 100644 --- a/Makefile +++ b/Makefile @@ -86,8 +86,8 @@ GOLANGCILINT ?= $(LOCALBIN)/golangci-lint ## Tool Versions ADDLICENSE_VERSION ?= v1.1.1 -GOIMPORTS_VERSION ?= v0.14.0 -GOLANGCILINT_VERSION ?= v1.55.1 +GOIMPORTS_VERSION ?= v0.20.0 +GOLANGCILINT_VERSION ?= v1.57.2 .PHONY: addlicense addlicense: $(ADDLICENSE) ## Download addlicense locally if necessary. diff --git a/go.mod b/go.mod index feaa481..6585d60 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/ironcore-dev/vgopath -go 1.20 +go 1.22.2 require ( github.com/onsi/ginkgo/v2 v2.17.1 diff --git a/go.sum b/go.sum index 2b3add0..999cd60 100644 --- a/go.sum +++ b/go.sum @@ -40,6 +40,7 @@ golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/tools v0.17.0 h1:FvmRgNOcs3kOa+T20R1uhfP9F6HgG2mfxDv1vrx1Htc= golang.org/x/tools v0.17.0/go.mod h1:xsh6VxdV005rRVaS6SSAf9oiAqljS7UZUacMZ8Bnsps= google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI= +google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=