Skip to content
Merged
8 changes: 4 additions & 4 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
31 changes: 19 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Loading