Skip to content

Commit

Permalink
Move push.yml to pull_request.yml and include Test flow
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuttapat Kirawittaya committed Sep 17, 2019
1 parent ca48fbc commit a452c8d
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 27 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build on Push
on: pull_request
jobs:
build:
name: Build and Test
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.12
uses: actions/setup-go@v1
with:
go-version: 1.12
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: Test
run: make test

- name: Build
uses: make build
27 changes: 0 additions & 27 deletions .github/workflows/push.yml

This file was deleted.

0 comments on commit a452c8d

Please sign in to comment.