From 07c6d64ec738741dd72e1fcca040440b726a5c18 Mon Sep 17 00:00:00 2001 From: mdm-code Date: Tue, 6 May 2025 19:44:39 +0200 Subject: [PATCH 01/11] Updated copyright date in the README file --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b629f7b..6d18e3f 100644 --- a/README.md +++ b/README.md @@ -271,7 +271,7 @@ and linting that can be used locally for development purposes. ## License -Copyright (c) 2024 Michał Adamczyk. +Copyright (c) 2025 Michał Adamczyk. This project is licensed under the [MIT license](https://opensource.org/licenses/MIT). See [LICENSE](LICENSE) for more details. From d8860af47a64cd1b903bac33efd9a8d51f578388 Mon Sep 17 00:00:00 2001 From: mdm-code Date: Tue, 6 May 2025 19:53:58 +0200 Subject: [PATCH 02/11] Configured Makefile verbosiity --- Makefile | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/Makefile b/Makefile index ff39109..891186a 100644 --- a/Makefile +++ b/Makefile @@ -6,30 +6,34 @@ export CGO_ENABLED=0 .DEFAULT_GOAL := build +ifndef VERBOSE +.SILENT: +endif + .PHONY: fmt vet test install build cover clean fmt: - @$(GO) fmt ./... + $(GO) fmt ./... vet: fmt - @$(GO) vet ./... + $(GO) vet ./... test: vet - @$(GO) clean -testcache - @$(GO) test ./... -v + $(GO) clean -testcache + $(GO) test ./... -v install: test - @$(GO) install ./... + $(GO) install ./... build: test - @$(GO) build $(GOFLAGS) github.com/mdm-code/tq/... + $(GO) build $(GOFLAGS) github.com/mdm-code/tq/... cover: - @$(GO) test -coverprofile=$(COV_PROFILE) -covermode=atomic ./... - @$(GO) tool cover -html=$(COV_PROFILE) + $(GO) test -coverprofile=$(COV_PROFILE) -covermode=atomic ./... + $(GO) tool cover -html=$(COV_PROFILE) clean: - @$(GO) clean github.com/mdm-code/tq/... - @$(GO) mod tidy - @$(GO) clean -testcache - @rm -f $(COV_PROFILE) + $(GO) clean github.com/mdm-code/tq/... + $(GO) mod tidy + $(GO) clean -testcache + rm -f $(COV_PROFILE) From 84d8a41fd3c0f54668d87efe4b7d6a93ceb8353c Mon Sep 17 00:00:00 2001 From: mdm-code Date: Tue, 6 May 2025 19:58:16 +0200 Subject: [PATCH 03/11] Enabled one shell spawned per target --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 891186a..d746205 100644 --- a/Makefile +++ b/Makefile @@ -12,6 +12,9 @@ endif .PHONY: fmt vet test install build cover clean +.PHONY: .ONESHELL +.ONESHELL: + fmt: $(GO) fmt ./... From 43a303d496c390e0ee6bd63632ec8115315f3feb Mon Sep 17 00:00:00 2001 From: mdm-code Date: Tue, 6 May 2025 19:59:36 +0200 Subject: [PATCH 04/11] Bumped Go version in go.mod file to 1.24 --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 761d2c5..e384729 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/mdm-code/tq/v2 -go 1.23 +go 1.24 require ( github.com/mdm-code/scanner v1.2.1 From c9937896fedc3394f1a99fff6a7d64a953026c7c Mon Sep 17 00:00:00 2001 From: mdm-code Date: Tue, 6 May 2025 20:05:25 +0200 Subject: [PATCH 05/11] Updated checkout action in GH workflow to 4.2.0 --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index e6de53f..206f21d 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -17,7 +17,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4.1.1 + uses: actions/checkout@v4.2.0 with: fetch-depth: 0 From 03f8ea8ecd9cd9dc3e74e8cdd9dcbce9ea41f0f3 Mon Sep 17 00:00:00 2001 From: mdm-code Date: Tue, 6 May 2025 20:06:05 +0200 Subject: [PATCH 06/11] Updated setup-go action in GH workflow to 5.4.0 --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 206f21d..a51e4f8 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -22,7 +22,7 @@ jobs: fetch-depth: 0 - name: Set up Go - uses: actions/setup-go@v4.1.0 + uses: actions/setup-go@v5.4.0 with: go-version: '1.23' From 581f1cc2b4cd7d55a3fcb7ffb57f6e9ecd4dc9bd Mon Sep 17 00:00:00 2001 From: mdm-code Date: Tue, 6 May 2025 20:08:41 +0200 Subject: [PATCH 07/11] Bumped GH release workflow Go version to 1.24 --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index a51e4f8..6bea470 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -24,7 +24,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5.4.0 with: - go-version: '1.23' + go-version: '1.24' - name: Login to Github container registry uses: docker/login-action@v3 From 5ea35cefc2b55e4ea78c282451692fe5d2bfc466 Mon Sep 17 00:00:00 2001 From: mdm-code Date: Tue, 6 May 2025 20:09:18 +0200 Subject: [PATCH 08/11] Introduced the same changes to to main workflow --- .github/workflows/go.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index 6ffaed3..f39e58a 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yaml @@ -10,19 +10,19 @@ jobs: build: strategy: matrix: - go: [ '1.23' ] + go: [ '1.24' ] os: [ windows-latest, macos-latest, ubuntu-latest ] runs-on: ${{ matrix.os }} name: ${{ matrix.go }}/${{ matrix.os }} steps: - name: Set up Go - uses: actions/setup-go@v4.1.0 + uses: actions/setup-go@v5.4.0 with: go-version: ${{ matrix.go }} - name: Checkout - uses: actions/checkout@v4.1.1 + uses: actions/checkout@v4.2.0 with: fetch-depth: 0 From ea450d84f98258a66c786d94bed64114071e2988 Mon Sep 17 00:00:00 2001 From: mdm-code Date: Tue, 6 May 2025 20:11:54 +0200 Subject: [PATCH 09/11] Specified docker login GH action to 3.4.0 --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 6bea470..6569a4b 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -27,7 +27,7 @@ jobs: go-version: '1.24' - name: Login to Github container registry - uses: docker/login-action@v3 + uses: docker/login-action@v3.4.0 with: registry: ghcr.io username: ${{ github.actor }} From 5c0741db5395945bf57ff0cbb8f6ac22280a6c55 Mon Sep 17 00:00:00 2001 From: mdm-code Date: Tue, 6 May 2025 20:13:41 +0200 Subject: [PATCH 10/11] Updated Goreleaser GH workflow action to 6.3.0 --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 6569a4b..8f1e6af 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -34,7 +34,7 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - name: Release - uses: goreleaser/goreleaser-action@v3 + uses: goreleaser/goreleaser-action@v6.3.0 with: distribution: goreleaser version: latest From 7cc15f8a5868614b35634e54d5d2540111b57d2b Mon Sep 17 00:00:00 2001 From: mdm-code Date: Tue, 6 May 2025 20:17:14 +0200 Subject: [PATCH 11/11] Updated codecov GH workflow action to 5.4.0 --- .github/workflows/go.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index f39e58a..0e1c00b 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yaml @@ -37,7 +37,7 @@ jobs: run: go test -v -coverprofile='coverage.txt' -covermode='atomic' ./... - name: Upload coverage reports to Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v5.4.0 with: token: ${{ secrets.CODECOV_TOKEN }} verbose: true