From dbd556381c9b702d3f6aa05fd8cbb4d089a561e8 Mon Sep 17 00:00:00 2001 From: Tnze Date: Thu, 5 Sep 2019 16:04:03 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=80=E5=8C=96Github=20Actions=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/go.yml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) 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 ./...