diff options
author | 6543 <6543@obermui.de> | 2021-09-13 22:19:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-13 22:19:30 +0200 |
commit | 58e6aec77f27214d7ba457ad709eedb0fc2f907b (patch) | |
tree | b2248970ecf9f9df989a6f8ee483b6043512edff /.github | |
parent | f74e870f23ccb5406917ab65c12595733d67c9a9 (diff) | |
download | git-bug-58e6aec77f27214d7ba457ad709eedb0fc2f907b.tar.gz |
Add Linter Step (#698)
* Add Linter Step
* format code
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/go.yml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 8200a84a..8abfba63 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -39,3 +39,17 @@ jobs: GITHUB_TOKEN_PUBLIC: ${{ secrets._GITHUB_TOKEN_PUBLIC }} GITLAB_API_TOKEN: ${{ secrets.GITLAB_API_TOKEN }} GITLAB_PROJECT_ID: ${{ secrets.GITLAB_PROJECT_ID }} + + lint: + runs-on: ubuntu-latest + steps: + - name: Install Go + uses: actions/setup-go@v2 + with: + go-version: 1.16.x + + - name: Checkout code + uses: actions/checkout@v2 + + - name: Check Code Formation + run: find . -name "*.go" | while read line; do [ -z "$(gofmt -d "$line" | head)" ] || exit 1; done |