From 8c689e6bcd87436a430fe2bc77fee05487471c22 Mon Sep 17 00:00:00 2001 From: Bartek Pacia Date: Wed, 1 May 2024 12:46:07 +0100 Subject: [PATCH] run gofumpt in CI --- .github/workflows/lint.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 4c53fde370..59574b105b 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -14,6 +14,23 @@ permissions: contents: read jobs: + format: + runs-on: ubuntu-latest + steps: + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: "1.20" + + - name: Clone repository + uses: actions/checkout@v4 + + - name: Set up gofumpt + run: go install mvdan.cc/gofumpt@latest + + - name: Run gofumpt + run: test -z $(gofumpt -l .) + staticcheck: runs-on: ubuntu-latest steps: