Merge pull request #188 from github/other-ci
Run CI on macos and windows
This commit is contained in:
commit
bce5d21fa1
1 changed files with 43 additions and 3 deletions
46
.github/workflows/go.yml
vendored
46
.github/workflows/go.yml
vendored
|
|
@ -1,8 +1,8 @@
|
|||
name: Go
|
||||
name: Tests
|
||||
on: [push]
|
||||
jobs:
|
||||
build:
|
||||
name: Build
|
||||
build-linux:
|
||||
name: Linux Build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Set up Go 1.13
|
||||
|
|
@ -21,3 +21,43 @@ jobs:
|
|||
run: |
|
||||
go test ./...
|
||||
go build -v .
|
||||
build-windows:
|
||||
name: Windows Build
|
||||
runs-on: windows-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: Verify dependencies
|
||||
run: go mod verify
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
go test ./...
|
||||
go build -v .
|
||||
build-macos:
|
||||
name: MacOS Build
|
||||
runs-on: macos-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: Verify dependencies
|
||||
run: go mod verify
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
go test ./...
|
||||
go build -v .
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue