mirror of
https://github.com/TwiN/gatus.git
synced 2024-11-22 16:03:44 +01:00
28 lines
586 B
YAML
28 lines
586 B
YAML
name: build
|
|
on:
|
|
pull_request:
|
|
paths-ignore:
|
|
- '*.md'
|
|
push:
|
|
branches:
|
|
- master
|
|
paths-ignore:
|
|
- '*.md'
|
|
jobs:
|
|
build:
|
|
name: Build
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 5
|
|
steps:
|
|
- name: Set up Go 1.14
|
|
uses: actions/setup-go@v1
|
|
with:
|
|
go-version: 1.14
|
|
id: go
|
|
- name: Check out code into the Go module directory
|
|
uses: actions/checkout@v1
|
|
- name: Build binary to make sure it works
|
|
run: go build -mod vendor
|
|
- name: Test
|
|
run: go test -mod vendor -cover ./...
|