Skip to content

Commit 4e2d4bb

Browse files
committed
Update to Go 1.17
1 parent 161a57c commit 4e2d4bb

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
name: Main
2+
23
on: push
4+
35
permissions:
46
contents: write
7+
58
jobs:
69
test_publish:
710
name: Test and publish
@@ -10,17 +13,22 @@ jobs:
1013
- name: Checkout code
1114
uses: actions/checkout@v2
1215
with:
13-
fetch-depth: 0
16+
fetch-depth: 0 # Needed to describe git ref during build.
17+
1418
- name: Export GOBIN
1519
uses: actions/setup-go@v2
1620
with:
17-
go-version: 1.16
21+
go-version: 1.17
22+
1823
- name: Install dependencies
1924
run: make setup
25+
2026
- name: Run tests
2127
run: make test
28+
2229
- name: Build
2330
run: make build
31+
2432
- name: Run GoReleaser
2533
uses: goreleaser/goreleaser-action@v2
2634
if: startsWith(github.ref, 'refs/tags/v') # Only release for tagged commits.

go.mod

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
module github.com/pushbits/cli
22

3-
go 1.16
3+
go 1.17
44

55
require (
66
github.com/jessevdk/go-flags v1.4.0
7-
golang.org/x/sys v0.0.0-20210603125802-9665404d3644 // indirect
87
golang.org/x/term v0.0.0-20210503060354-a79de5458b56
98
)
9+
10+
require golang.org/x/sys v0.0.0-20210603125802-9665404d3644 // indirect

0 commit comments

Comments
 (0)