Skip to content

Commit

Permalink
ci: test/build with go 1.14/1.15/1.16 (#1051)
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
  • Loading branch information
cpanato authored Jun 15, 2021
1 parent e2daef5 commit 529b437
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Build

on:
pull_request:
pull_request:
branches: ['main']

jobs:
Expand All @@ -10,11 +10,15 @@ jobs:
name: Build
runs-on: ubuntu-latest

strategy:
matrix:
go-version: [1.14.x, 1.15.x, 1.16.x]

steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: 1.16.x
go-version: ${{ matrix.go-version }}

- run: |
go build ./...
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,18 @@ on:
jobs:

test:
strategy:
matrix:
go-version: [1.14.x, 1.15.x, 1.16.x]

name: Unit Tests
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: 1.16.x
go-version: ${{ matrix.go-version }}

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

Expand Down

0 comments on commit 529b437

Please sign in to comment.