Skip to content

Commit

Permalink
Create build.yml
Browse files Browse the repository at this point in the history
Add Github Actions
  • Loading branch information
tanghaibao committed Nov 24, 2019
1 parent 3f21c88 commit 4b879f9
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: build
on: [push]
jobs:

build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
go: [1.11, 1.12]

steps:

- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go }}
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v1

- name: Get dependencies
run: |
go get -v -t -d ./...
if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi
- name: Build
run: go build -v .

- name: Unit testing
run: go test -v

- name: Functional testing
run: bash functional-tests.sh

0 comments on commit 4b879f9

Please sign in to comment.