mirror of
https://github.com/TwiN/gatus.git
synced 2024-12-01 04:14:20 +01:00
6c91bbcc4a
* Crossbuild docker image * Fix yaml syntax * Github Actions timeout disabled * Add linux/386, linux/arm/v6, linux/arm/v7, linux/ppc64le, linux/s390x docker images * Remove linux/386, linux/ppc64le, linux/s390x docker images * Remove "Github Packages" from build step name Co-authored-by: Chris C. <twin@twinnation.org> * Split workflow file to test/docker * Forward RELEASE variable to GITHUB_ENV * Bring back timeout for tests Co-authored-by: Chris C. <twin@twinnation.org>
32 lines
742 B
YAML
32 lines
742 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.15
|
|
uses: actions/setup-go@v1
|
|
with:
|
|
go-version: 1.15
|
|
id: 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
|
|
- name: Test
|
|
run: go test -mod vendor ./... -race -coverprofile=coverage.txt -covermode=atomic
|
|
- name: Codecov
|
|
uses: codecov/codecov-action@v1.0.14
|
|
with:
|
|
file: ./coverage.txt
|