name: Test on Windows on: push: branches: [ master ] pull_request: branches: [ master ] jobs: build: name: Run tests runs-on: windows-latest steps: - name: Set up Go 1.x uses: actions/setup-go@v2 with: go-version: ^1.13 - name: Check out code into the Go module directory uses: actions/checkout@v2 - name: Get dependencies run: | go get -v -t -d ./... - name: Build run: go build -v . - name: Test run: go test -v . - name: Build all demos run: | Get-ChildItem -Path _demos/*.go | ForEach-Object { Write-Output "Building ./_demos/",$_.Name go build $_ }