diff --git a/.github/workflows/push-test.yaml b/.github/workflows/pull_request-test.yaml similarity index 80% rename from .github/workflows/push-test.yaml rename to .github/workflows/pull_request-test.yaml index 85d1d65e7..c602007b8 100644 --- a/.github/workflows/push-test.yaml +++ b/.github/workflows/pull_request-test.yaml @@ -1,7 +1,11 @@ -name: push-test -on: push +name: pull_request-test +on: + pull_request: + types: + - opened + - synchronize jobs: - build: + test: runs-on: ubuntu-latest env: GOPATH: /home/runner/work/rp/go @@ -25,4 +29,4 @@ jobs: go build ./... go test ./... - [[ -z $(git status -s) ]] + [[ -z "$(git status -s)" ]]