diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index 6ffaed3..0e1c00b 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 @@ -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 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index e6de53f..8f1e6af 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -17,24 +17,24 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4.1.1 + uses: actions/checkout@v4.2.0 with: 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' + 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 }} password: ${{ secrets.GITHUB_TOKEN }} - name: Release - uses: goreleaser/goreleaser-action@v3 + uses: goreleaser/goreleaser-action@v6.3.0 with: distribution: goreleaser version: latest diff --git a/Makefile b/Makefile index ff39109..d746205 100644 --- a/Makefile +++ b/Makefile @@ -6,30 +6,37 @@ export CGO_ENABLED=0 .DEFAULT_GOAL := build +ifndef VERBOSE +.SILENT: +endif + .PHONY: fmt vet test install build cover clean +.PHONY: .ONESHELL +.ONESHELL: + 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) 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. 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