Crossbuild docker image for different architectures (#55)
* 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>
This commit is contained in:
31
.github/workflows/test.yml
vendored
Normal file
31
.github/workflows/test.yml
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
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
|
Reference in New Issue
Block a user