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