From 1df765edcd2be00e27cf4e355114c3d042edf4b7 Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Sat, 16 Jan 2021 16:14:32 +0100 Subject: [PATCH] add go-mod-tidy to the lint action --- .github/workflows/lint.yml | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 9c8ea02f..82145de4 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -2,13 +2,13 @@ name: lint on: push: - branches: [master] + branches: [ master ] pull_request: - branches: [master] + branches: [ master ] jobs: - lint: - name: lint + golangci-lint: + name: golangci-lint runs-on: ubuntu-latest @@ -18,3 +18,18 @@ jobs: - uses: golangci/golangci-lint-action@v2 with: version: v1.33 + + go-mod-tidy: + name: go-mod-tidy + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - uses: actions/setup-go@v2 + + - run: | + go mod download + go mod tidy + git diff --exit-code