-
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.
Merge pull request #32 from fastbill/update-go-and-deps
Update Go, dependencies, linter and fix bug with envloader
- Loading branch information
Showing
17 changed files
with
1,535 additions
and
524 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,30 @@ | ||
name: Run tests and linter | ||
|
||
on: [push, pull_request, workflow_dispatch] | ||
|
||
jobs: | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: '^1.18.x' | ||
- name: Install dependencies | ||
run: go mod vendor | ||
- name: Run tests | ||
run: go test -race -cover ./... | ||
|
||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: '^1.18.x' | ||
- name: Install dependencies | ||
run: go mod vendor | ||
- uses: golangci/golangci-lint-action@v3 | ||
with: | ||
version: v1.45 |
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
ENVLOADER_TESTKEY3="" |
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,2 +1 @@ | ||
ENVLOADER_TESTKEY4= | ||
ENVLOADER_TESTKEY3=customValue3 | ||
ENVLOADER_TESTKEY4=customValue4 |
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,36 +1,69 @@ | ||
module github.com/fastbill/go-service-toolkit/v4 | ||
|
||
go 1.15 | ||
go 1.18 | ||
|
||
require ( | ||
github.com/alicebob/miniredis/v2 v2.14.1 | ||
github.com/fastbill/go-httperrors/v2 v2.0.1 | ||
github.com/getsentry/sentry-go v0.2.1 | ||
github.com/go-playground/validator/v10 v10.4.1 | ||
github.com/go-redis/redis/v8 v8.4.8 | ||
github.com/golang-migrate/migrate/v4 v4.14.1 | ||
github.com/alicebob/miniredis/v2 v2.20.0 | ||
github.com/fastbill/go-httperrors/v2 v2.0.2 | ||
github.com/getsentry/sentry-go v0.13.0 | ||
github.com/go-playground/validator/v10 v10.11.0 | ||
github.com/go-redis/redis/v8 v8.11.5 | ||
github.com/golang-migrate/migrate/v4 v4.15.2 | ||
github.com/joho/godotenv v1.4.0 | ||
github.com/labstack/echo/v4 v4.7.2 | ||
github.com/labstack/gommon v0.3.1 | ||
github.com/prometheus/client_golang v1.12.1 | ||
github.com/sirupsen/logrus v1.8.1 | ||
github.com/stretchr/testify v1.7.1 | ||
gorm.io/driver/mysql v1.3.3 | ||
gorm.io/driver/postgres v1.3.5 | ||
gorm.io/gorm v1.23.5 | ||
) | ||
|
||
require ( | ||
github.com/alicebob/gopher-json v0.0.0-20200520072559-a9ecdc9d1d3a // indirect | ||
github.com/beorn7/perks v1.0.1 // indirect | ||
github.com/cespare/xxhash/v2 v2.1.2 // indirect | ||
github.com/davecgh/go-spew v1.1.1 // indirect | ||
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect | ||
github.com/go-playground/locales v0.14.0 // indirect | ||
github.com/go-playground/universal-translator v0.18.0 // indirect | ||
github.com/go-sql-driver/mysql v1.6.0 // indirect | ||
github.com/golang-jwt/jwt v3.2.2+incompatible // indirect | ||
github.com/golang/protobuf v1.5.2 // indirect | ||
github.com/google/go-cmp v0.5.7 // indirect | ||
github.com/hashicorp/errwrap v1.1.0 // indirect | ||
github.com/jackc/pgproto3/v2 v2.0.7 // indirect | ||
github.com/joho/godotenv v1.3.0 | ||
github.com/labstack/echo/v4 v4.1.6 | ||
github.com/labstack/gommon v0.3.0 | ||
github.com/hashicorp/go-multierror v1.1.1 // indirect | ||
github.com/jackc/chunkreader/v2 v2.0.1 // indirect | ||
github.com/jackc/pgconn v1.12.0 // indirect | ||
github.com/jackc/pgio v1.0.0 // indirect | ||
github.com/jackc/pgpassfile v1.0.0 // indirect | ||
github.com/jackc/pgproto3/v2 v2.3.0 // indirect | ||
github.com/jackc/pgservicefile v0.0.0-20200714003250-2b9c44734f2b // indirect | ||
github.com/jackc/pgtype v1.11.0 // indirect | ||
github.com/jackc/pgx/v4 v4.16.0 // indirect | ||
github.com/jinzhu/inflection v1.0.0 // indirect | ||
github.com/jinzhu/now v1.1.5 // indirect | ||
github.com/leodido/go-urn v1.2.1 // indirect | ||
github.com/lib/pq v1.9.0 // indirect | ||
github.com/mattn/go-colorable v0.1.8 // indirect | ||
github.com/pingcap/errors v0.11.4 // indirect | ||
github.com/prometheus/client_golang v1.9.0 | ||
github.com/sirupsen/logrus v1.7.0 | ||
github.com/lib/pq v1.10.5 // indirect | ||
github.com/mattn/go-colorable v0.1.12 // indirect | ||
github.com/mattn/go-isatty v0.0.14 // indirect | ||
github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 // indirect | ||
github.com/pmezard/go-difflib v1.0.0 // indirect | ||
github.com/prometheus/client_model v0.2.0 // indirect | ||
github.com/prometheus/common v0.34.0 // indirect | ||
github.com/prometheus/procfs v0.7.3 // indirect | ||
github.com/stretchr/objx v0.3.0 // indirect | ||
github.com/stretchr/testify v1.6.1 | ||
github.com/valyala/bytebufferpool v1.0.0 // indirect | ||
github.com/valyala/fasttemplate v1.2.1 // indirect | ||
github.com/yuin/gopher-lua v0.0.0-20200816102855-ee81675732da // indirect | ||
golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad // indirect | ||
golang.org/x/net v0.0.0-20201224014010-6772e930b67b // indirect | ||
golang.org/x/sys v0.0.0-20210110051926-789bb1bd4061 // indirect | ||
golang.org/x/text v0.3.5 // indirect | ||
gopkg.in/yaml.v2 v2.4.0 // indirect | ||
github.com/yuin/gopher-lua v0.0.0-20220428201426-ff834ae8486b // indirect | ||
go.uber.org/atomic v1.9.0 // indirect | ||
golang.org/x/crypto v0.0.0-20220427172511-eb4f295cb31f // indirect | ||
golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4 // indirect | ||
golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba // indirect | ||
golang.org/x/text v0.3.7 // indirect | ||
golang.org/x/time v0.0.0-20220411224347-583f2d630306 // indirect | ||
golang.org/x/xerrors v0.0.0-20220411194840-2f41105eb62f // indirect | ||
google.golang.org/protobuf v1.28.0 // indirect | ||
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect | ||
gorm.io/driver/mysql v1.0.3 | ||
gorm.io/driver/postgres v1.0.6 | ||
gorm.io/gorm v1.20.11 | ||
) |
Oops, something went wrong.