Make sure failed builds result in an error on Windows

By default, this was run on PowerShell on Windows, and even though the
Actions environment is supposed to immediately exit on failures[1], this
doesn't seem to have effect.

Switching to bash for unified behavior on all platforms.

[1]: https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#exit-codes-and-error-action-preference
This commit is contained in:
Mislav Marohnić 2020-01-29 12:22:13 +01:00
parent 2abee0905b
commit 4e579e544c

View file

@ -21,6 +21,7 @@ jobs:
run: go mod verify
- name: Build
shell: bash
run: |
go test ./...
go build -v ./cmd/gh