From 4a60b75ad9b173a2fccc1366d0d2f59c9536c5d7 Mon Sep 17 00:00:00 2001 From: Maina Wycliffe Date: Sat, 11 Apr 2020 21:32:25 +0300 Subject: [PATCH] Update Github Actions for Running Tests --- .github/workflows/go.yml | 41 +++++++++++++++------------------------- 1 file changed, 15 insertions(+), 26 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 68c5333..3d653bb 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -1,34 +1,23 @@ -name: Go +name: Go Tests on: push: - branches: [ master ] + branches: [master] pull_request: - branches: [ master ] - + branches: [master] jobs: - build: - name: Build + name: Test New Commits runs-on: ubuntu-latest steps: - - - name: Set up Go 1.13 - uses: actions/setup-go@v1 - with: - go-version: 1.13 - id: go - - - name: Check out code into the Go module directory - uses: actions/checkout@v2 - - - 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: go test -v ./... + - name: Set up Go 1.13 + uses: actions/setup-go@v1 + with: + go-version: 1.13 + id: go + - name: Check out code into the Go module directory + uses: actions/checkout@v2 + - name: Get dependencies + run: go get -v -t -d ./... + - name: Test + run: go test -v ./...