| 1 |
name: Test on Windows |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
branches: [ master ] |
| 6 |
pull_request: |
| 7 |
branches: [ master ] |
| 8 |
|
| 9 |
jobs: |
| 10 |
|
| 11 |
build: |
| 12 |
name: Run tests |
| 13 |
runs-on: windows-latest |
| 14 |
steps: |
| 15 |
|
| 16 |
- name: Set up Go 1.x |
| 17 |
uses: actions/setup-go@v2 |
| 18 |
with: |
| 19 |
go-version: ^1.13 |
| 20 |
|
| 21 |
- name: Check out code into the Go module directory |
| 22 |
uses: actions/checkout@v2 |
| 23 |
|
| 24 |
- name: Get dependencies |
| 25 |
run: | |
| 26 |
go get -v -t -d ./... |
| 27 |
|
| 28 |
- name: Build |
| 29 |
run: go build -v . |
| 30 |
|
| 31 |
- name: Test |
| 32 |
run: go test -v . |
| 33 |
|
| 34 |
- name: Build all demos |
| 35 |
run: | |
| 36 |
Get-ChildItem -Path _demos/*.go | ForEach-Object { |
| 37 |
Write-Output "Building ./_demos/",$_.Name |
| 38 |
go build $_ |
| 39 |
} |