From efac76ad49b0f044113a588c9d0a29a01a36a7a7 Mon Sep 17 00:00:00 2001 From: Sven Greb Date: Sun, 21 Nov 2021 15:11:22 +0100 Subject: [PATCH] Update to `tmpl-go` template repository version `0.10.0` 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]: https://github.com/svengreb/tmpl-go/issues/72 [3]: https://github.com/svengreb/tmpl-go/issues/74 GH-110 --- .github/workflows/ci-go.yaml | 10 ++++++++++ .golangci.yml | 3 +++ 2 files changed, 13 insertions(+) diff --git a/.github/workflows/ci-go.yaml b/.github/workflows/ci-go.yaml index 396f02a..a08a85f 100644 --- a/.github/workflows/ci-go.yaml +++ b/.github/workflows/ci-go.yaml @@ -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 diff --git a/.golangci.yml b/.golangci.yml index b24e12d..819e95f 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -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: