2
0

Apply gofmt -s

And add CI check for that.
This commit is contained in:
Alexey Palazhchenko
2023-01-24 10:59:20 +04:00
committed by Jack Christensen
parent f581584148
commit f839d501a7
8 changed files with 69 additions and 63 deletions
+7 -1
View File
@@ -75,7 +75,7 @@ jobs:
steps:
- name: Set up Go 1.x
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
@@ -104,6 +104,12 @@ jobs:
# PGX_SSL_PASSWORD: ${{ matrix.pgx-ssl-password }}
# PGX_TEST_TLS_CLIENT_CONN_STRING: ${{ matrix.pgx-test-tls-client-conn-string }}
- name: Check formatting
run: |
gofmt -l -s -w .
git status
git diff --exit-code
- name: Test
run: go test -race ./...
env: