Skip to content
This repository was archived by the owner on Sep 17, 2022. It is now read-only.

Commit 451ed89

Browse files
committed
Update to go 1.16
1 parent 00e902a commit 451ed89

File tree

4 files changed

+371
-104
lines changed

4 files changed

+371
-104
lines changed

.github/workflows/release.yml

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -8,30 +8,29 @@ jobs:
88
name: Release cli
99
runs-on: ubuntu-latest
1010
steps:
11+
- name: Set up Go 1.16
12+
uses: actions/setup-go@v1
13+
with:
14+
go-version: 1.16
15+
id: go
1116

12-
- name: Set up Go 1.13
13-
uses: actions/setup-go@v1
14-
with:
15-
go-version: 1.13
16-
id: go
17+
- name: Check out code
18+
uses: actions/checkout@v1
1719

18-
- name: Check out code
19-
uses: actions/checkout@v1
20+
- name: Go Test
21+
run: |
22+
make test
2023
21-
- name: Go Test
22-
run: |
23-
make test
24+
- name: End to end tests
25+
run: |
26+
make build-e2e e2e
2427
25-
- name: End to end tests
26-
run: |
27-
make build-e2e e2e
28-
29-
- name: Release CLI executables
30-
env:
31-
GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
32-
DOCKER_HUB_USERNAME: getapid
33-
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD }}
34-
run: |
35-
curl -sfL https://install.goreleaser.com/github.com/goreleaser/goreleaser.sh | sh
36-
docker login --username $DOCKER_HUB_USERNAME --password $DOCKER_HUB_PASSWORD
37-
PATH=$PATH:./bin/ make release
28+
- name: Release CLI executables
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
31+
DOCKER_HUB_USERNAME: getapid
32+
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD }}
33+
run: |
34+
curl -sfL https://install.goreleaser.com/github.com/goreleaser/goreleaser.sh | sh
35+
docker login --username $DOCKER_HUB_USERNAME --password $DOCKER_HUB_PASSWORD
36+
PATH=$PATH:./bin/ make release

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ jobs:
55
name: unit-test
66
runs-on: ubuntu-latest
77
steps:
8-
- name: Set up Go 1.13
8+
- name: Set up Go 1.16
99
uses: actions/setup-go@v1
1010
with:
11-
go-version: 1.13
11+
go-version: 1.16
1212
id: go
1313

1414
- name: Check out code

go.mod

Lines changed: 18 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,26 @@
11
module github.com/getapid/apid-cli
22

3-
go 1.13
3+
go 1.16
44

55
require (
6-
github.com/fatih/color v1.7.0
7-
github.com/gin-contrib/sse v0.1.0 // indirect
8-
github.com/gin-gonic/gin v1.4.0
9-
github.com/golang/mock v1.3.1
10-
github.com/golang/protobuf v1.3.2 // indirect
11-
github.com/json-iterator/go v1.1.7 // indirect
12-
github.com/kr/pretty v0.1.0 // indirect
13-
github.com/mattn/go-colorable v0.1.4 // indirect
14-
github.com/mattn/go-isatty v0.0.10 // indirect
15-
github.com/pkg/errors v0.8.1 // indirect
6+
github.com/fatih/color v1.10.0
7+
github.com/gin-gonic/gin v1.6.3
8+
github.com/go-playground/validator/v10 v10.4.1 // indirect
9+
github.com/golang/mock v1.5.0
10+
github.com/golang/protobuf v1.5.2 // indirect
11+
github.com/json-iterator/go v1.1.10 // indirect
12+
github.com/leodido/go-urn v1.2.1 // indirect
1613
github.com/robfig/cron v1.2.0
17-
github.com/spf13/cobra v0.0.5
18-
github.com/spf13/pflag v1.0.5 // indirect
19-
github.com/stretchr/testify v1.4.0
20-
github.com/tidwall/gjson v1.6.0
21-
github.com/tidwall/pretty v1.0.1 // indirect
22-
go.uber.org/atomic v1.4.0 // indirect
23-
go.uber.org/multierr v1.1.0
24-
go.uber.org/zap v1.10.0
25-
golang.org/x/net v0.0.0-20190620200207-3b0461eec859 // indirect
26-
golang.org/x/sys v0.0.0-20191010194322-b09406accb47 // indirect
27-
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect
28-
gopkg.in/yaml.v2 v2.2.4
29-
gopkg.in/yaml.v3 v3.0.0-20190709130402-674ba3eaed22
14+
github.com/spf13/cobra v1.1.3
15+
github.com/stretchr/testify v1.7.0
16+
github.com/tidwall/gjson v1.7.4
17+
github.com/ugorji/go v1.2.5 // indirect
18+
go.uber.org/multierr v1.6.0
19+
go.uber.org/zap v1.16.0
20+
golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2 // indirect
21+
golang.org/x/sys v0.0.0-20210331175145-43e1dd70ce54 // indirect
22+
gopkg.in/yaml.v2 v2.4.0
23+
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b
3024
)
3125

3226
replace github.com/ugorji/go v1.1.4 => github.com/ugorji/go/codec v0.0.0-20190204201341-e444a5086c43

0 commit comments

Comments
 (0)