-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
121 additions
and
112 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,18 @@ | ||
name: Lint | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
jobs: | ||
golangci: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Run lint | ||
uses: golangci/golangci-lint-action@v2 | ||
with: | ||
version: latest |
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
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 |
---|---|---|
|
@@ -11,7 +11,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
go-version: [1.15.x, 1.16.x] | ||
go-version: [1.17.x, 1.18.x] | ||
services: | ||
postgres: | ||
image: postgres | ||
|
@@ -25,16 +25,6 @@ jobs: | |
--health-timeout 5s | ||
--health-retries 5 | ||
steps: | ||
- name: Fetch staticcheck | ||
uses: engineerd/[email protected] | ||
with: | ||
name: staticcheck | ||
fromGitHubReleases: true | ||
repo: dominikh/go-tools | ||
version: latest | ||
urlTemplate: "https://github.com/dominikh/go-tools/releases/download/2020.2.3/staticcheck_linux_amd64.tar.gz" | ||
pathInArchive: staticcheck/staticcheck | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Cache dependencies | ||
|
@@ -52,5 +42,3 @@ jobs: | |
run: make test | ||
env: | ||
DATABASE_DSN: postgresql://postgres:s3cret@localhost:${{ job.services.postgres.ports[5432] }}/postgres?sslmode=disable | ||
- name: Run staticcheck | ||
run: make staticcheck |
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,6 @@ | ||
linters-settings: | ||
errcheck: | ||
exclude-functions: | ||
- (*database/sql.Tx).Rollback | ||
- (*github.com/bsm/accord.Handle).Discard | ||
- (github.com/bsm/accord/internal/cache.BatchWriter).Discard |
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
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
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
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
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
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
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
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
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 |
---|---|---|
@@ -1,16 +1,30 @@ | ||
module github.com/bsm/accord | ||
|
||
go 1.15 | ||
go 1.17 | ||
|
||
require ( | ||
github.com/Masterminds/squirrel v1.5.0 | ||
github.com/Masterminds/squirrel v1.5.2 | ||
github.com/bsm/ginkgo/v2 v2.1.3 | ||
github.com/bsm/gomega v1.18.1 | ||
github.com/dgraph-io/badger v1.6.2 | ||
github.com/golang/protobuf v1.5.2 | ||
github.com/google/uuid v1.2.0 | ||
github.com/joho/godotenv v1.3.0 | ||
github.com/lib/pq v1.10.2 | ||
github.com/onsi/ginkgo v1.16.2 | ||
github.com/onsi/gomega v1.12.0 | ||
google.golang.org/grpc v1.38.0 | ||
google.golang.org/protobuf v1.26.0 | ||
github.com/google/uuid v1.3.0 | ||
github.com/joho/godotenv v1.4.0 | ||
github.com/lib/pq v1.10.4 | ||
google.golang.org/grpc v1.45.0 | ||
google.golang.org/protobuf v1.28.0 | ||
) | ||
|
||
require ( | ||
github.com/AndreasBriese/bbloom v0.0.0-20190825152654-46b345b51c96 // indirect | ||
github.com/cespare/xxhash v1.1.0 // indirect | ||
github.com/dgraph-io/ristretto v0.0.2 // indirect | ||
github.com/dustin/go-humanize v1.0.0 // indirect | ||
github.com/lann/builder v0.0.0-20180802200727-47ae307949d0 // indirect | ||
github.com/lann/ps v0.0.0-20150810152359-62de8c46ede0 // indirect | ||
github.com/pkg/errors v0.8.1 // indirect | ||
golang.org/x/net v0.0.0-20200822124328-c89045814202 // indirect | ||
golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd // indirect | ||
golang.org/x/text v0.3.0 // indirect | ||
google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013 // indirect | ||
) |
Oops, something went wrong.