Skip to content

Commit

Permalink
Merge pull request #17 from jritter/develop
Browse files Browse the repository at this point in the history
Improve tooling
  • Loading branch information
jritter authored Mar 17, 2024
2 parents 2ff7df5 + 69b423d commit ed6e6d4
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ go.work
/data

/scapinoculars
/helm/**/*.tgz
/helm/**/*.tgz
dist/
36 changes: 36 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
# you may remove this if you don't need go generate
- go generate ./...
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'

# modelines, feel free to remove those if you don't want/use them:
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ lint:
tidy:
go mod tidy

container:
podman build -t ghcr.io/jritter/scapinoculars:latest .

# Run tests
test: tidy lint
go test ./... -coverprofile=coverage.out
Expand Down

0 comments on commit ed6e6d4

Please sign in to comment.