-
Notifications
You must be signed in to change notification settings - Fork 4
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 #7 from invopop/go-1.20
Updating Minimum Go version and workflows for testing
- Loading branch information
Showing
7 changed files
with
83 additions
and
41 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
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,24 +1,24 @@ | ||
name: Test Go | ||
on: [push, pull_request] | ||
jobs: | ||
lint-test-build: | ||
name: Lint, Test | ||
test: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Set up Go | ||
uses: actions/setup-go@v1 | ||
with: | ||
go-version: '1.16.2' | ||
id: go | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version-file: "go.mod" | ||
id: go | ||
|
||
- name: Install Dependencies | ||
env: | ||
GOPROXY: https://proxy.golang.org,direct | ||
run: go mod download | ||
- name: Install Dependencies | ||
env: | ||
GOPROXY: https://proxy.golang.org,direct | ||
run: go mod download | ||
|
||
- name: Test | ||
run: go test -tags unit -race ./... | ||
- name: Test | ||
run: go test -tags unit -race ./... |
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,31 @@ | ||
run: | ||
timeout: "120s" | ||
|
||
output: | ||
formats: | ||
- format: "colored-line-number" | ||
|
||
linters: | ||
enable: | ||
- "gocyclo" | ||
- "unconvert" | ||
- "goimports" | ||
- "govet" | ||
- "misspell" | ||
- "nakedret" | ||
- "revive" | ||
- "goconst" | ||
- "unparam" | ||
- "gofmt" | ||
|
||
linters-settings: | ||
staticcheck: | ||
# SAxxxx checks in https://staticcheck.io/docs/configuration/options/#checks | ||
# Default: ["*"] | ||
checks: ["all"] | ||
|
||
goconst: | ||
ignore-tests: true | ||
|
||
issues: | ||
exclude-use-default: false |
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,8 +1,14 @@ | ||
module github.com/invopop/validation | ||
|
||
go 1.16 | ||
go 1.20 | ||
|
||
require ( | ||
github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d | ||
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 | ||
github.com/stretchr/testify v1.8.1 | ||
) | ||
|
||
require ( | ||
github.com/davecgh/go-spew v1.1.1 // indirect | ||
github.com/pmezard/go-difflib v1.0.0 // indirect | ||
gopkg.in/yaml.v3 v3.0.1 // indirect | ||
) |
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