diff options
author | Erik Dubbelboer <erik@dubbelboer.com> | 2021-09-10 18:49:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-10 18:49:45 +0200 |
commit | 46d92356a82724771e38504ce73a4a301f2cd7a7 (patch) | |
tree | def0a8f5c88d2568b01e7e74cc86398f8ad37295 /.github | |
parent | Adding new compressible prefixes (#1092) (diff) | |
download | fasthttp-46d92356a82724771e38504ce73a4a301f2cd7a7.tar.gz fasthttp-46d92356a82724771e38504ce73a4a301f2cd7a7.tar.bz2 fasthttp-46d92356a82724771e38504ce73a4a301f2cd7a7.zip |
Check go fmt during lint (#1097)
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/lint.yml | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index ef1b5c5..5130b05 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -8,9 +8,12 @@ jobs: lint: runs-on: ubuntu-latest steps: - - name: Checkout code - uses: actions/checkout@v2 - - name: GolangCI-Lint Action - uses: golangci/golangci-lint-action@v2 + - uses: actions/checkout@v2 + - uses: actions/setup-go@v2 + with: + go-version: 1.17.x + - run: go version + - run: diff -u <(echo -n) <(gofmt -d .) + - uses: golangci/golangci-lint-action@v2 with: version: v1.28.3 |