Skip to content

Commit 880ba3a

Browse files
committed
chore: Bumped minimum go version to 1.16
1 parent e423056 commit 880ba3a

File tree

6 files changed

+16
-20
lines changed

6 files changed

+16
-20
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,23 @@ jobs:
88
strategy:
99
fail-fast: false
1010
matrix:
11-
go: [1.15, 1.16, 1.17]
11+
go: [1.16, 1.17, 1.18]
1212

1313
steps:
1414
- name: Set up Go ${{ matrix.go }}
15-
uses: actions/setup-go@v1
15+
uses: actions/setup-go@v3
1616
with:
1717
go-version: ${{ matrix.go }}
1818

1919
- name: Install golint
20-
run: go get golang.org/x/lint/golint
20+
run: go install golang.org/x/lint/golint@latest
2121

2222
- name: Check out code
2323
uses: actions/checkout@v2
2424

2525
- name: Run Linter
2626
run: |
27-
GOLINT=`go list -f {{.Target}} golang.org/x/lint/golint`
28-
$GOLINT -set_exit_status ./...
27+
golint -set_exit_status ./...
2928
3029
- name: Run Unit Tests
3130
if: success() || failure()
@@ -51,7 +50,7 @@ jobs:
5150

5251
steps:
5352
- name: Set up Go 1.16
54-
uses: actions/setup-go@v1
53+
uses: actions/setup-go@v3
5554
with:
5655
go-version: 1.16
5756

.github/workflows/nightly.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ jobs:
2929

3030
steps:
3131
- name: Set up Go
32-
uses: actions/setup-go@v1
32+
uses: actions/setup-go@v3
3333
with:
34-
go-version: 1.15
34+
go-version: 1.16
3535

3636
- name: Install golint
37-
run: go get golang.org/x/lint/golint
37+
run: go install golang.org/x/lint/golint@latest
3838

3939
- name: Check out code
4040
uses: actions/checkout@v2
@@ -43,8 +43,7 @@ jobs:
4343

4444
- name: Run Linter
4545
run: |
46-
GOLINT=`go list -f {{.Target}} golang.org/x/lint/golint`
47-
$GOLINT -set_exit_status ./...
46+
golint -set_exit_status ./...
4847
4948
- name: Run Tests
5049
run: ./.github/scripts/run_all_tests.sh

.github/workflows/release.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ jobs:
4040
# via the 'ref' client parameter.
4141
steps:
4242
- name: Set up Go
43-
uses: actions/setup-go@v1
43+
uses: actions/setup-go@v3
4444
with:
45-
go-version: 1.15
45+
go-version: 1.16
4646

4747
- name: Install golint
48-
run: go get golang.org/x/lint/golint
48+
run: go install golang.org/x/lint/golint@latest
4949

5050
- name: Check out code
5151
uses: actions/checkout@v2
@@ -54,8 +54,7 @@ jobs:
5454

5555
- name: Run Linter
5656
run: |
57-
GOLINT=`go list -f {{.Target}} golang.org/x/lint/golint`
58-
$GOLINT -set_exit_status ./...
57+
golint -set_exit_status ./...
5958
6059
- name: Run Tests
6160
run: ./.github/scripts/run_all_tests.sh

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ requests, code review feedback, and also pull requests.
4242
## Supported Go Versions
4343

4444
The Admin Go SDK is compatible with at least the three most recent, major Go releases.
45-
We currently support Go v1.15 and higher.
45+
We currently support Go v1.16 and higher.
4646
[Continuous integration](https://github.com/firebase/firebase-admin-go/actions) system
47-
tests the code on Go v1.15 through v1.17.
47+
tests the code on Go v1.16 through v1.18.
4848

4949
## Documentation
5050

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module firebase.google.com/go/v4
22

3-
go 1.15
3+
go 1.16
44

55
require (
66
cloud.google.com/go/firestore v1.6.1

go.sum

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaS
123123
github.com/golang/protobuf v1.5.1/go.mod h1:DopwsBzvsk0Fs44TXzsVbJyPhcCPeIwnvohx4u74HPM=
124124
github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw=
125125
github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
126-
github.com/golang/snappy v0.0.3 h1:fHPg5GQYlCeLIPB9BZqMVR5nR9A+IM5zcgeTdjMYmLA=
127126
github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
128127
github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
129128
github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=

0 commit comments

Comments
 (0)