Skip to content

Commit

Permalink
refactor: update go 1.19 and dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
joseluisq committed Mar 28, 2023
1 parent ecd8f27 commit b1b28ae
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 21 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/devel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on: [push, pull_request]

env:
GO111MODULE: on
GOPROXY: "https://proxy.golang.org"

jobs:
test:
Expand All @@ -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
Expand All @@ -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:
Expand Down
14 changes: 2 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions go.mod
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
)
4 changes: 2 additions & 2 deletions go.sum
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=

0 comments on commit b1b28ae

Please sign in to comment.