diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 4413988..67c1fe7 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -1,9 +1,9 @@ name: Go -on: [push] +on: [push, pull_request] jobs: test: - name: Build + name: Test runs-on: ubuntu-latest steps: @@ -16,13 +16,5 @@ jobs: - 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 + - name: Test run: go test ./...