Skip to content

Commit

Permalink
Update tests.yml to use go1.16 (#363)
Browse files Browse the repository at this point in the history
* Update tests.yml

* continue running tests on older golang versions
  • Loading branch information
bmoffatt committed Mar 2, 2021
1 parent 1353117 commit a8e138f
Showing 1 changed file with 51 additions and 3 deletions.
54 changes: 51 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ on:
jobs:

test:
name: run tests with code coverage
name: run tests with go 1.16 and code coverage
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.13
- name: Set up Go 1.16
uses: actions/setup-go@v1
with:
go-version: 1.13
go-version: 1.16
id: go

- name: Check out code into the Go module directory
Expand All @@ -25,3 +25,51 @@ jobs:
uses: codecov/codecov-action@v1
with:
file: ./coverage.txt

test-v115:
name: run tests with go 1.15
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.15
uses: actions/setup-go@v1
with:
go-version: 1.15
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v1

- name: go test
run: go test -race -coverprofile=coverage.txt -covermode=atomic ./...

test-v114:
name: run tests with go 1.14
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.14
uses: actions/setup-go@v1
with:
go-version: 1.14
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v1

- name: go test
run: go test -race -coverprofile=coverage.txt -covermode=atomic ./...

test-v113:
name: run tests with go 1.13
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.13
uses: actions/setup-go@v1
with:
go-version: 1.13
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v1

- name: go test
run: go test -race -coverprofile=coverage.txt -covermode=atomic ./...

0 comments on commit a8e138f

Please sign in to comment.