Add lint into github workflow

This commit is contained in:
Dan Sosedoff 2022-11-14 15:49:30 -06:00
parent c706523bd0
commit 580c1093d1
No known key found for this signature in database
GPG Key ID: 26186197D282B164

View File

@ -42,6 +42,24 @@ jobs:
PGPASSWORD: postgres
PGDATABASE: booktown
lint:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.50.1
fmt:
name: fmt
runs-on: ubuntu-latest