diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index a913e88..03f7649 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -11,13 +11,9 @@ jobs: name: lint runs-on: ubuntu-latest steps: - - uses: actions/setup-go@v4 - with: - go-version: '1.19' - uses: actions/checkout@v4 - name: golangci-lint uses: golangci/golangci-lint-action@v3 with: version: latest args: --timeout=5m - # skip-cache: true diff --git a/.goreleaser.yml b/.goreleaser.yml index b72eb4d..a8c8655 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -103,6 +103,27 @@ release: owner: circonus-labs 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" diff --git a/internal/config/config_test.go b/internal/config/config_test.go index 1dead35..4d232f7 100644 --- a/internal/config/config_test.go +++ b/internal/config/config_test.go @@ -22,8 +22,8 @@ func TestValidate(t *testing.T) { t.Log("no config") { err := Validate() - if err != nil { - t.Fatalf("Expected NO error, got (%s)", err) + if err == nil { + t.Fatal("expected error") } } }