Skip to content

Commit

Permalink
Merge pull request #31 from maier/master
Browse files Browse the repository at this point in the history
v0.0.14
  • Loading branch information
maier committed Dec 5, 2023
2 parents 1860cd4 + 64a4f6c commit fe54c74
Show file tree
Hide file tree
Showing 4 changed files with 106 additions and 20 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: golangci-lint
on:
on:
push:
tags: [ "v*" ]
branches: [ master ]
Expand All @@ -11,14 +11,9 @@ jobs:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v4
with:
stable: true
go-version: 1.17.x
- uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v3.7.0
with:
version: v1.48
skip-go-installation: true
version: latest
args: --timeout=5m
25 changes: 25 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# MacOS
.DS_Store

# Vagrant
.vagrant*/

# Binaries for programs and plugins
*.exe
*.dll
*.so
*.dylib

# Test binary, build with `go test -c`
*.test

# Output of the go coverage tool
*.out

# vendored packages
vendor*/

# goreleaser
dist/

.envrc
58 changes: 58 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# yaml-language-server: $schema=https://goreleaser.com/static/schema-pro.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj

version: 1

project_name: go-trapmetrics

before:
hooks:
- go mod tidy
- golangci-lint run
- cmd: golangci-lint run
env:
- GOOS=linux
- govulncheck ./...

builds:
- skip: true

release:
github:
owner: circonus-labs
name: go-trapmetrics

draft: false
prerelease: auto

changelog:
use: git
sort: desc
abbrev: 0
groups:
- title: Features
regexp: "^.*feat[(\\w)]*:+.*$"
order: 0
- title: 'Bug fixes'
regexp: "^.*fix[(\\w)]*:+.*$"
order: 1
- title: 'Dependencies'
regexp: "^.*build(deps):+.*$"
order: 2
- title: Others
order: 999
filters:
exclude:
- '^docs:'
- typo

checksum:
name_template: "{{.ProjectName}}_checksums.txt"

sboms:
- artifacts: any
args: ["../go.mod", "--output", "cyclonedx-json@1.5={{.ProjectName}}_{{.Version}}.sbom"]
env:
- SYFT_GOLANG_SEARCH_LOCAL_MOD_CACHE_LICENSES=true
- SYFT_GOLANG_SEARCH_REMOTE_LICENSES=true

34 changes: 21 additions & 13 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,33 @@
# v0.0.13
# unreleased

## v0.0.14

* build: add goreleaser config
* chore: use latest linter in workflow
* chore: add .gitignore

## v0.0.13

* fix(lint): unused args
* chore(lint): struct alignment
* build(deps): bump github.com/circonus-labs/go-trapcheck from 0.0.12 to 0.0.13

# v0.0.12
## v0.0.12

* build(deps): bump github.com/circonus-labs/go-trapcheck from 0.0.10 to 0.0.11
* build(deps): bump github.com/circonus-labs/go-apiclient from 0.7.19 to 0.7.23
* build(deps): bump golangci/golangci-lint-action from 3.3.0 to 3.4.0

# v0.0.11
## v0.0.11

* feat: add BytesSentGzip stat
* build(deps): update go-trapcheck from v0.0.9 to v0.0.10

# v0.0.10
## v0.0.10

* fix: send all 64bit numbers as bignum_as_string in json

# v0.0.9
## v0.0.9

* feat: add `UpdateCheckTags` method
* feat: add `QueueCheckTag` method
Expand All @@ -28,7 +36,7 @@
* chore: update to go1.17
* fix(lint): ioutil deprecation

# v0.0.8
## v0.0.8

* upd: go-trapcheck v0.0.8
* add: additional text tests (leading/trailing spaces, non-printable char)
Expand All @@ -41,38 +49,38 @@
* upd: check type assertions
* add: more tests for each metric type

# v0.0.7
## v0.0.7

* upd: go-trapcheck v0.0.7
* upd: use bytes.Buffer
* add: FlushRawJSON to send pre-formatted metrics
* add: FlushWithBuffer to pass in a buffer from a pool
* upd: use bytes.Buffer for metrics

# v0.0.6
## v0.0.6

* upd: dep go-trapcheck

# v0.0.5
## v0.0.5

* upd: dep go-trapcheck
* fix: handle zero metrics to send correctly

# v0.0.4
## v0.0.4

* upd: dep go-trapcheck

# v0.0.3
## v0.0.3

* build(deps): bump github.com/circonus-labs/go-trapcheck

# v0.0.2
## v0.0.2

* build(deps): bump github.com/circonus-labs/go-trapcheck
* add: dependabot config
* fix: lint issues
* add: lint config/action

# v0.0.1
## v0.0.1

* initial

0 comments on commit fe54c74

Please sign in to comment.