-
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.
refactor: update go 1.19 and dependencies
- Loading branch information
Showing
4 changed files
with
18 additions
and
21 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 |
---|---|---|
|
@@ -4,7 +4,6 @@ on: [push, pull_request] | |
|
||
env: | ||
GO111MODULE: on | ||
GOPROXY: "https://proxy.golang.org" | ||
|
||
jobs: | ||
test: | ||
|
@@ -13,9 +12,8 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
go: | ||
- 1.15.x | ||
- 1.16.x | ||
- 1.17.x | ||
- 1.19.x | ||
- 1.20.x | ||
os: | ||
- ubuntu-20.04 | ||
- macos-11 | ||
|
@@ -28,8 +26,17 @@ jobs: | |
go-version: ${{ matrix.go }} | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Vet | ||
run: | | ||
go vet ./... | ||
- name: Tests | ||
run: go test ./... -v -timeout 30s -coverprofile=coverage.txt -covermode=atomic | ||
run: | | ||
go test ./... -v -timeout 30s -coverprofile=coverage.txt -covermode=atomic | ||
- uses: dominikh/[email protected] | ||
with: | ||
version: "2023.1.3" | ||
install-go: false | ||
cache-key: ${{ matrix.go }} | ||
- name: Coverage | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
|
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 |
---|---|---|
|
@@ -4,18 +4,14 @@ PKG_TAG=$(shell git tag -l --contains HEAD) | |
BUILD_TIME ?= $(shell date -u '+%Y-%m-%dT%H:%m:%S') | ||
|
||
export GO111MODULE := on | ||
# enable consistent Go 1.12/1.13 GOPROXY behavior. | ||
export GOPROXY = https://proxy.golang.org,https://gocenter.io,direct | ||
|
||
####################################### | ||
############# Development ############# | ||
####################################### | ||
|
||
install: | ||
@go version | ||
@go get -v golang.org/x/lint/golint | ||
@curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh | ||
@curl -L https://git.io/misspell | sh | ||
@go install honnef.co/go/tools/cmd/[email protected] | ||
@go mod download | ||
@go mod tidy | ||
.ONESHELL: install | ||
|
@@ -38,7 +34,7 @@ dev.release: | |
|
||
test: | ||
@go version | ||
@golint -set_exit_status ./... | ||
@staticcheck ./... | ||
@go vet ./... | ||
@go test $$(go list ./...) \ | ||
-v -timeout 30s -race -coverprofile=coverage.txt -covermode=atomic | ||
|
@@ -56,12 +52,6 @@ fmt: | |
@find . -name '*.go' -not -wholename './vendor/*' | while read -r file; do gofmt -w -s "$$file"; goimports -w "$$file"; done | ||
.PHONY: fmt | ||
|
||
lint: | ||
@go version | ||
@./bin/golangci-lint run --tests=false --enable-all --disable=lll --disable funlen --disable godox ./... | ||
@./bin/misspell -error **/* | ||
.PHONY: lint | ||
|
||
dev_release: | ||
@go version | ||
@goreleaser release --snapshot --rm-dist | ||
|
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,8 @@ | ||
module github.com/joseluisq/enve | ||
|
||
go 1.15 | ||
go 1.19 | ||
|
||
require ( | ||
github.com/joho/godotenv v1.4.0 | ||
github.com/joho/godotenv v1.5.1 | ||
github.com/joseluisq/cline v0.1.0 | ||
) |
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,4 +1,4 @@ | ||
github.com/joho/godotenv v1.4.0 h1:3l4+N6zfMWnkbPEXKng2o2/MR5mSwTrBih4ZEkkz1lg= | ||
github.com/joho/godotenv v1.4.0/go.mod h1:f4LDr5Voq0i2e/R5DDNOoa2zzDfwtkZa6DnEwAbqwq4= | ||
github.com/joho/godotenv v1.5.1 h1:7eLL/+HRGLY0ldzfGMeQkb7vMd0as4CfYvUVzLqw0N0= | ||
github.com/joho/godotenv v1.5.1/go.mod h1:f4LDr5Voq0i2e/R5DDNOoa2zzDfwtkZa6DnEwAbqwq4= | ||
github.com/joseluisq/cline v0.1.0 h1:vv5bkJmTYsEdpcMNNpQJRovGEjbhAWvh0JH8dCtTtV8= | ||
github.com/joseluisq/cline v0.1.0/go.mod h1:OHx3HRPOMpaxrkgR6pNdPCdcOh55WhP2nT7OiSFLLkA= |