Skip to content

Commit 82b0986

Browse files

File tree

1 file changed

+5
-42
lines changed

1 file changed

+5
-42
lines changed

.github/workflows/go.yml

Lines changed: 5 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,12 @@
11
name: Tests
22
on: [push]
33
jobs:
4-
build-linux:
5-
name: Linux Build
6-
runs-on: ubuntu-latest
7-
steps:
8-
- name: Set up Go 1.13
9-
uses: actions/setup-go@v1
10-
with:
11-
go-version: 1.13
12-
id: go
13-
14-
- name: Check out code into the Go module directory
15-
uses: actions/checkout@v1
4+
build:
5+
strategy:
6+
matrix:
7+
os: [ubuntu-latest, windows-latest, macos-latest]
8+
runs-on: ${{ matrix.os }}
169

17-
- name: Verify dependencies
18-
run: go mod verify
19-
20-
- name: Build
21-
run: |
22-
go test ./...
23-
go build -v .
24-
build-windows:
25-
name: Windows Build
26-
runs-on: windows-latest
27-
steps:
28-
- name: Set up Go 1.13
29-
uses: actions/setup-go@v1
30-
with:
31-
go-version: 1.13
32-
id: go
33-
34-
- name: Check out code into the Go module directory
35-
uses: actions/checkout@v1
36-
37-
- name: Verify dependencies
38-
run: go mod verify
39-
40-
- name: Build
41-
run: |
42-
go test ./...
43-
go build -v .
44-
build-macos:
45-
name: MacOS Build
46-
runs-on: macos-latest
4710
steps:
4811
- name: Set up Go 1.13
4912
uses: actions/setup-go@v1

0 commit comments

Comments
 (0)