mirror of
https://github.com/TwiN/gatus.git
synced 2024-11-22 16:03:44 +01:00
Tweak build action
This commit is contained in:
parent
e463aec5f6
commit
2f2890c093
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
@ -14,16 +14,17 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 5
|
||||
steps:
|
||||
- run: sudo su
|
||||
- name: Set up Go 1.15
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.15
|
||||
- run: go version && which go
|
||||
- run: sudo go version && sudo which go
|
||||
- name: Check out code into the Go module directory
|
||||
uses: actions/checkout@v2
|
||||
- name: Build binary to make sure it works
|
||||
run: go build -mod vendor
|
||||
- run: go version && which go
|
||||
- run: sudo go version && sudo which go
|
||||
- name: Test
|
||||
run: sudo go test -mod vendor ./... -race -coverprofile=coverage.txt -covermode=atomic
|
||||
- name: Codecov
|
||||
|
Loading…
Reference in New Issue
Block a user