Skip to content

Commit bce5d21

Browse files
author
Nate Smith
authored
Merge pull request cli#188 from github/other-ci
Run CI on macos and windows
2 parents fb0472a + 2e192d7 commit bce5d21

File tree

1 file changed

+43
-3
lines changed

1 file changed

+43
-3
lines changed

.github/workflows/go.yml

Lines changed: 43 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
name: Go
1+
name: Tests
22
on: [push]
33
jobs:
4-
build:
5-
name: Build
4+
build-linux:
5+
name: Linux Build
66
runs-on: ubuntu-latest
77
steps:
88
- name: Set up Go 1.13
@@ -21,3 +21,43 @@ jobs:
2121
run: |
2222
go test ./...
2323
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
47+
steps:
48+
- name: Set up Go 1.13
49+
uses: actions/setup-go@v1
50+
with:
51+
go-version: 1.13
52+
id: go
53+
54+
- name: Check out code into the Go module directory
55+
uses: actions/checkout@v1
56+
57+
- name: Verify dependencies
58+
run: go mod verify
59+
60+
- name: Build
61+
run: |
62+
go test ./...
63+
go build -v .

0 commit comments

Comments
 (0)