Skip to content

Commit 0a97b3f

Browse files
add github action to run tests
1 parent 9d23d7a commit 0a97b3f

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

.github/workflows/tests.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Set up Go
2121
uses: actions/setup-go@v5
2222
with:
23-
go-version: '1.13'
23+
go-version: '1.16'
2424
cache: true
2525

2626
- name: Download dependencies
@@ -29,7 +29,6 @@ jobs:
2929
- name: Run unit tests
3030
run: |
3131
# Run tests excluding integration and example packages
32-
# This includes all proxy auth tests (Basic, SPNEGO, etc.)
3332
go test -v -race -coverprofile=coverage.out -covermode=atomic \
3433
$(go list ./... | grep -v '/integration' | grep -v '/example')
3534
@@ -60,7 +59,7 @@ jobs:
6059
- name: Set up Go
6160
uses: actions/setup-go@v5
6261
with:
63-
go-version: '1.13'
62+
go-version: '1.16'
6463
cache: true
6564

6665
- name: Run go fmt

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
module github.com/pivotal-cf/go-pivnet/v7
22

3+
go 1.16
4+
35
require (
46
github.com/fatih/color v1.7.0 // indirect
57
github.com/hashicorp/go-uuid v1.0.3 // indirect
@@ -23,5 +25,3 @@ require (
2325
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect
2426
gopkg.in/cheggaaa/pb.v1 v1.0.26
2527
)
26-
27-
go 1.13

0 commit comments

Comments
 (0)