Adding github actions CI

Adding github actions CI
This commit is contained in:
Renán I. Del Valle 2020-02-22 11:44:30 -08:00 committed by GitHub
parent 406640c7a9
commit 800d8e5a30
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

26
.github/workflows/main.yml vendored Normal file
View file

@ -0,0 +1,26 @@
name: CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Go for use with actions
uses: actions/setup-go@v1.0.0
with:
version: 1.13
- name: Install goimports
run: go get golang.org/x/tools/cmd/goimports
- name: Run goimports check
run: test -z "`for d in $GO_USR_DIRS; do goimports -d $d/*.go | tee /dev/stderr; done`"
env:
GO_USR_DIRS: $(go list -f {{.Dir}} ./... | grep -E -v "/gen-go/|/vendor/")
- name: Create aurora/mesos docker cluster
run: docker-compose up -d
- name: Run tests
run: go test -race -coverprofile=coverage.txt -covermode=atomic -v github.com/aurora-scheduler/gorealis