mirror of
https://github.com/TwiN/gatus.git
synced 2025-01-10 16:08:29 +01:00
Update build job
This commit is contained in:
parent
49f5940a43
commit
58327394dd
@ -1,9 +1,18 @@
|
|||||||
name: Go
|
name: build
|
||||||
on: [push]
|
on:
|
||||||
|
pull_request:
|
||||||
|
paths-ignore:
|
||||||
|
- '*.md'
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
paths-ignore:
|
||||||
|
- '*.md'
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build
|
name: Build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 5
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Go 1.14
|
- name: Set up Go 1.14
|
||||||
uses: actions/setup-go@v1
|
uses: actions/setup-go@v1
|
||||||
@ -12,7 +21,7 @@ jobs:
|
|||||||
id: go
|
id: go
|
||||||
- name: Check out code into the Go module directory
|
- name: Check out code into the Go module directory
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v1
|
||||||
- name: Test
|
- name: Build binary to make sure it works
|
||||||
run: go test -mod vendor ./...
|
|
||||||
- name: Build
|
|
||||||
run: go build -mod vendor
|
run: go build -mod vendor
|
||||||
|
- name: Test
|
||||||
|
run: go test -mod vendor -cover ./...
|
Loading…
Reference in New Issue
Block a user