-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add initial project infrastructure
- Loading branch information
Showing
3 changed files
with
190 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: main | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
tags: | ||
- v* | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: install-postgis | ||
run: | | ||
sudo apt-get install -y postgis postgresql | ||
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c | ||
- uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 | ||
- run: go build ./... | ||
- run: go test -v ./... | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c | ||
- uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 | ||
- uses: golangci/golangci-lint-action@08e2f20817b15149a52b5b3ebe7de50aff2ba8c5 | ||
with: | ||
version: v1.52.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,144 @@ | ||
linters: | ||
enable: | ||
- asasalint | ||
- asciicheck | ||
- bidichk | ||
- bodyclose | ||
- containedctx | ||
- contextcheck | ||
- decorder | ||
- dogsled | ||
- dupl | ||
- dupword | ||
- durationcheck | ||
- errcheck | ||
- errchkjson | ||
- errname | ||
- errorlint | ||
- execinquery | ||
- exhaustive | ||
- exportloopref | ||
- forbidigo | ||
- forcetypeassert | ||
- gci | ||
- ginkgolinter | ||
- gocheckcompilerdirectives | ||
- gocognit | ||
- goconst | ||
- gocritic | ||
- gocyclo | ||
- godot | ||
- goerr113 | ||
- gofmt | ||
- gofumpt | ||
- goheader | ||
- goimports | ||
- gomoddirectives | ||
- gomodguard | ||
- goprintffuncname | ||
- gosec | ||
- gosimple | ||
- govet | ||
- grouper | ||
- importas | ||
- ineffassign | ||
- interfacebloat | ||
- ireturn | ||
- loggercheck | ||
- makezero | ||
- misspell | ||
- musttag | ||
- nakedret | ||
- nestif | ||
- nilerr | ||
- nilnil | ||
- noctx | ||
- nolintlint | ||
- nosprintfhostport | ||
- prealloc | ||
- predeclared | ||
- promlinter | ||
- reassign | ||
- revive | ||
- rowserrcheck | ||
- sqlclosecheck | ||
- staticcheck | ||
- stylecheck | ||
- tagliatelle | ||
- tenv | ||
- testpackage | ||
- thelper | ||
- tparallel | ||
- typecheck | ||
- unconvert | ||
- unparam | ||
- unused | ||
- usestdlibvars | ||
- wastedassign | ||
- whitespace | ||
disable: | ||
- cyclop | ||
- depguard | ||
- exhaustivestruct | ||
- exhaustruct | ||
- funlen | ||
- gochecknoglobals | ||
- gochecknoinits | ||
- godox | ||
- gomnd | ||
- lll | ||
- maintidx | ||
- nlreturn | ||
- nonamedreturns | ||
- paralleltest | ||
- structcheck # https://github.com/golangci/golangci-lint/issues/2649 | ||
- testableexamples | ||
- varnamelen | ||
- wrapcheck | ||
- wsl | ||
|
||
linters-settings: | ||
gci: | ||
sections: | ||
- standard | ||
- default | ||
- prefix(github.com/twpayne/pgx-geos) | ||
gofumpt: | ||
extra-rules: true | ||
local-prefixes: github.com/twpayne/pgx-geos | ||
goimports: | ||
local-prefixes: github.com/twpayne/pgx-geos | ||
govet: | ||
disable: | ||
- fieldalignment | ||
- shadow | ||
enable-all: true | ||
ireturn: | ||
allow: | ||
- error | ||
- github.com/jackc/pgx/v5/pgtype.EncodePlan | ||
- github.com/jackc/pgx/v5/pgtype.ScanPlan | ||
- stdlib | ||
misspell: | ||
locale: US | ||
stylecheck: | ||
checks: | ||
- all | ||
|
||
issues: | ||
exclude-rules: | ||
- linters: | ||
- dupl | ||
- forcetypeassert | ||
- scopelint | ||
path: "_test\\.go" | ||
- linters: | ||
- forbidigo | ||
- gosec | ||
path: "internal/" | ||
- linters: | ||
- goerr113 | ||
text: do not define dynamic errors, use wrapped static errors instead | ||
- linters: | ||
- revive | ||
text: unused-parameter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters