From d01ddd096b3f2ad2a3cc4750afa311d2cb41b31f Mon Sep 17 00:00:00 2001 From: s3rj1k Date: Thu, 17 Aug 2023 18:15:03 +0300 Subject: [PATCH] Add `golang-tidy` workflow. Signed-off-by: s3rj1k --- .github/workflows/golang-tidy.yml | 32 +++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/golang-tidy.yml diff --git a/.github/workflows/golang-tidy.yml b/.github/workflows/golang-tidy.yml new file mode 100644 index 0000000..fbb97d6 --- /dev/null +++ b/.github/workflows/golang-tidy.yml @@ -0,0 +1,32 @@ +name: Go Mod Tidy Check + +on: + workflow_dispatch: + push: + branches: + - main + pull_request: + types: [opened, synchronize, reopened, ready_for_review] + +permissions: + contents: read + pull-requests: read + +jobs: + build: + name: Go Mod Tidy + runs-on: ubuntu-latest + + steps: + - name: Setup Golang + uses: actions/setup-go@v4 + with: + go-version: '1.20' + cache: false + + - name: Check out source code + uses: actions/checkout@v3 + + - name: Tidy + run: | + make tidy check-git-clean