mirror of https://github.com/pressly/goose.git
Add github actions and remove travis (#245)
parent
7dd9c10b04
commit
f4a495fe54
|
@ -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 ./...
|
|
@ -1,8 +0,0 @@
|
|||
sudo: false
|
||||
language: go
|
||||
go:
|
||||
- 1.12
|
||||
|
||||
script:
|
||||
- mkdir -p bin
|
||||
- go test -v ./...
|
Loading…
Reference in New Issue