Skip to content

Commit a4b9284

Browse files
authored
Add matrix to GitHub workflow (#105)
- Add matrix with OS and Go versions to GitHub workflow. - Add codecov flag.
1 parent 91723e0 commit a4b9284

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,14 @@ on:
1010

1111
jobs:
1212
ci-build:
13-
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
go-version: [1.15]
16+
os: [ubuntu-latest, macos-latest, windows-latest]
17+
runs-on: ${{ matrix.os }}
18+
defaults:
19+
run:
20+
shell: bash
1421
steps:
1522
- uses: actions/checkout@v2
1623
with:
@@ -21,7 +28,7 @@ jobs:
2128
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
2229
- uses: actions/setup-go@v2
2330
with:
24-
go-version: 1.15
31+
go-version: ${{ matrix.go-version }}
2532
- name: Build
2633
run: make ci
2734
- name: Upload coverage
@@ -38,3 +45,4 @@ jobs:
3845
uses: codecov/codecov-action@v1
3946
with:
4047
file: ./coverage.out
48+
flags: ${{ runner.os }}

0 commit comments

Comments
 (0)