Skip to content

Commit

Permalink
build: update tools versions
Browse files Browse the repository at this point in the history
  • Loading branch information
JGiola committed Oct 4, 2024
1 parent accb923 commit 05d59d7
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Go",
"image": "golang:1.23.1",
"image": "golang:1.23.2",
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {"username": "golang"},
"ghcr.io/devcontainers/features/go:1": {"version": "none", "golangciLintVersion": "1.61.0"}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
- examples/**

env:
GORELEASER_VERSION: v2.2.0
GORELEASER_VERSION: v2.3.2
jobs:
lint:
name: Lint Code
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:
- cron: 0 5 * * 1 # Run every monday at 5 UTC

env:
GORELEASER_VERSION: v2.2.0
GORELEASER_VERSION: v2.3.2

jobs:
codeql:
Expand Down
2 changes: 1 addition & 1 deletion .go-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.23.1
1.23.2
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ repos:
name: Trims trailing whitespace
args: [--markdown-linebreak-ext=md] # add exception for markdown linebreaks
- repo: https://github.com/gitleaks/gitleaks
rev: v8.18.4
rev: v8.20.0
hooks:
- id: gitleaks
name: Protect and discover secrets using Gitleaks
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed

- update go version to 1.23.2

## [v0.15.0] - 2024-09-12

### Added
Expand Down
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/mia-platform/miactl

go 1.23.1
go 1.23.2

require (
dario.cat/mergo v1.0.1
Expand Down
2 changes: 1 addition & 1 deletion tools/ENVTEST_K8S_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.28
1.30
2 changes: 1 addition & 1 deletion tools/GORELEASER_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2.2.0
v2.3.2
15 changes: 5 additions & 10 deletions tools/make/test.mk
Original file line number Diff line number Diff line change
Expand Up @@ -24,36 +24,31 @@ endif

ENVTEST_K8S_VERSION?= $(shell cat $(TOOLS_DIR)/ENVTEST_K8S_VERSION)

# needed until the linker warning on macos are fixed
ifeq (Darwin,$(shell uname -s))
MACOS_LINKER_FLAGS ?= -extldflags=-Wl,-ld_classic
endif

.PHONY: test/unit
test/unit:
$(info Running tests...)
go test $(GO_TEST_DEBUG_FLAG) -ldflags="$(MACOS_LINKER_FLAGS)" -race ./...
go test $(GO_TEST_DEBUG_FLAG) -race ./...

.PHONY: test/integration
test/integration:
$(info Running integration tests...)
go test $(GO_TEST_DEBUG_FLAG) -ldflags="$(MACOS_LINKER_FLAGS)" -tags=integration -race ./...
go test $(GO_TEST_DEBUG_FLAG) -tags=integration -race ./...

.PHONY: test/coverage
test/coverage:
$(info Running tests with coverage on...)
go test $(GO_TEST_DEBUG_FLAG) -ldflags="$(MACOS_LINKER_FLAGS)" -race -coverprofile=coverage.txt -covermode=atomic ./...
go test $(GO_TEST_DEBUG_FLAG) -race -coverprofile=coverage.txt -covermode=atomic ./...

.PHONY: test/integration/coverage
test/integration/coverage:
$(info Running ci tests with coverage on...)
go test $(GO_TEST_DEBUG_FLAG) -ldflags="$(MACOS_LINKER_FLAGS)" -tags=integration -race -coverprofile=coverage.txt -covermode=atomic ./...
go test $(GO_TEST_DEBUG_FLAG) -tags=integration -race -coverprofile=coverage.txt -covermode=atomic ./...

.PHONY: test/conformance test/conformance/setup test/conformance/teardown
test/conformance/setup:
test/conformance:
$(info Running conformance tests...)
go test $(GO_TEST_DEBUG_FLAG) -ldflags="$(MACOS_LINKER_FLAGS)" -tags=conformance -race -count=1 $(CONFORMANCE_TEST_PATH)
go test $(GO_TEST_DEBUG_FLAG) -tags=conformance -race -count=1 $(CONFORMANCE_TEST_PATH)
test/conformance/teardown:

test/show/coverage:
Expand Down

0 comments on commit 05d59d7

Please sign in to comment.