From 0944341c54ca266673fc7b2974894c9ef7da2ebe Mon Sep 17 00:00:00 2001 From: Thibaut Gauvin Date: Thu, 17 Oct 2024 20:14:49 +0200 Subject: [PATCH] maint: pin version of golangci-lint config file refs --- .github/workflows/qa.yml | 2 +- Makefile | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/qa.yml b/.github/workflows/qa.yml index cff36f20..0a7c9190 100644 --- a/.github/workflows/qa.yml +++ b/.github/workflows/qa.yml @@ -21,7 +21,7 @@ jobs: runs-on: ubuntu-latest env: # renovate: datasource=github-releases depName=radiofrance/lint-config - LINT_CONFIG_VERSION: v1.0.0 + LINT_CONFIG_VERSION: v1.0.1 steps: - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 diff --git a/Makefile b/Makefile index 0a075bba..6b0e3332 100644 --- a/Makefile +++ b/Makefile @@ -29,8 +29,10 @@ docs: build qa: lint test -lint: - curl -o .golangci.yml https://raw.githubusercontent.com/radiofrance/lint-config/main/.golangci.yml +# renovate: datasource=github-releases depName=radiofrance/lint-config +LINT_CONFIG_VERSION=v1.0.1 +lint: ## Lint source code + curl -o .golangci.yml -sS "https://raw.githubusercontent.com/radiofrance/lint-config/${LINT_CONFIG_VERSION}/.golangci.yml" golangci-lint run --verbose PKG := "./..." @@ -48,6 +50,8 @@ test: ## Run tests sed 's/PAUSE/$(BLUE)PAUSE$(RESET)/g' | \ sed 's/PASS/$(GREEN)PASS$(RESET)/g' | \ sed 's/FAIL/$(RED)FAIL$(RESET)/g' + +coverage: test ## Run test, then generate coverage html report @go tool cover -html=coverage.out -o coverage.html @echo "To open the html coverage file, use one of the following commands:" @echo "open coverage.html on mac"