Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.24'
go-version: '1.25'
- name: Check outdated dependencies
run: go mod tidy -diff

Expand All @@ -21,7 +21,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.24'
go-version: '1.25'
- name: Install govulncheck
run: go install golang.org/x/vuln/cmd/govulncheck@latest
- name: Check vulnerabilities
Expand All @@ -34,7 +34,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.24'
go-version: '1.25'
- name: Check format according to gofmt
run: test -z $(gofmt -l .)

Expand All @@ -45,6 +45,6 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.24'
go-version: '1.25'
- name: Test
run: go test -v ./...
44 changes: 37 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,16 +1,46 @@
MAIN=.
TAG_VERSION=$(shell git describe --tags --exact-match 2>/dev/null || git rev-parse --short HEAD || echo "were-init")
VERSION=$(subst /,_,$(TAG_VERSION))

all: build
@echo all built

build:
go build
go build $(MAIN)

clean:
go clean
@rm -rf gelo target
@echo all removed

lint:
golangci-lint run .
golangci-lint run ./...
@echo all code is linted

format:
gofmt -w -s .

format-check:
gofmt -l .

run:
go run . $(OTHER)
go run $(MAIN) -loglevel DEBUG

test:
go test -v ./...

sbom: build
@mkdir -p target/sbom
cyclonedx-gomod bin -json -output ./target/sbom/gelo-$(VERSION).bom.json ./gelo

setup-devtools:
# Vulnerability checker
go install golang.org/x/vuln/cmd/govulncheck@latest
# Debugger
go install github.com/go-delve/delve/cmd/dlv@latest
# Linter
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
# SBOM generator
go install github.com/CycloneDX/cyclonedx-gomod/cmd/cyclonedx-gomod@latest

setup:
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.63.4

.PHONY: build clean lint run setup
.PHONY: all build clean dev-dependencies lint format format-check run test sbom setup-devtools
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module go.cpmachado.pt/gelo

go 1.24.0
go 1.25.1