Skip to content

Commit

Permalink
Update to tmpl-go template repository version 0.10.0
Browse files Browse the repository at this point in the history
Updated to `tmpl-go` version `0.10.0` [1] which...

1. disables `golangci-lint`'s default excluded issues [2] - this
   prevents that explicitly enabled rules are not ignored due to the
   default set of excluded issues.
2. caches Go dependencies and build outputs in `ci-go` workflow [3] -
   this improves the workflow execution time.

See the full `tmpl-go` version `0.10.0` changelog [1] for all details.

[1]: https://github.com/svengreb/tmpl-go/releases/tag/v0.10.0
[2]: svengreb/tmpl-go#72
[3]: svengreb/tmpl-go#74

GH-110
  • Loading branch information
svengreb committed Nov 21, 2021
1 parent c39b2c4 commit efac76a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci-go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,16 @@ jobs:
go-version: "1.17.x"
- name: Bootstrap tools
run: go run make.go bootstrap
- name: Cache Go dependencies and build outputs
uses: actions/cache@v2
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Run unit tests with coverage and race detector
run: go run make.go testCover testRace
- name: Run integration tests
Expand Down
3 changes: 3 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
# See https://golangci-lint.run/usage/configuration for more details.

issues:
# Prevent linter rules/issues, that are explicitly enabled by this configuration, to be ignored due to golangci-lint's
# set of issues that are ignored by default.
exclude-use-default: false
exclude-rules:
# Prevent issues on `go generate` command directive lines.
- linters:
Expand Down

0 comments on commit efac76a

Please sign in to comment.