Add github actions and remove travis (#245)

pull/248/head
Michael Fridman 2021-03-08 08:15:37 -05:00 committed by GitHub
parent 7dd9c10b04
commit f4a495fe54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 35 additions and 8 deletions

35
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,35 @@
name: Goose CI
on:
push:
branches:
- master
pull_request:
jobs:
test:
name: Run unit tests
timeout-minutes: 10
env:
GO111MODULE: off
strategy:
matrix:
go-version: [1.14.x, 1.15.x, 1.16.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Fetch deps
run: go get -d ./...
- name: Run tests
run: |
mkdir -p bin
go test -v ./...

View File

@ -1,8 +0,0 @@
sudo: false
language: go
go:
- 1.12
script:
- mkdir -p bin
- go test -v ./...