From 50294fef0d409d0b48ab8e0403d51ae9eae93c41 Mon Sep 17 00:00:00 2001 From: Didier Roche Date: Fri, 19 Mar 2021 08:00:50 +0100 Subject: [PATCH] Run go mod tidy in CI to ensure we are up to date. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit With go 1.16 go build doesn’t update the mod files anymore. go mod tidy will ensure that it was ran before merging. --- .github/workflows/qa.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/qa.yaml b/.github/workflows/qa.yaml index 7ce431fcc..dbe759545 100644 --- a/.github/workflows/qa.yaml +++ b/.github/workflows/qa.yaml @@ -45,7 +45,9 @@ jobs: go get github.com/securego/gosec/cmd/gosec gosec ./... - name: Module files are up to date - run: ./.github/ci/check-modules + run: | + go mod tidy + ./.github/ci/check-modules if: ${{ always() }} - name: Building run: go build ./...