diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index dccabce..8e276eb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,7 +1,10 @@ name: test on: + pull_request: + branches: [master] push: + branches: [master] paths: - '**.go' - '.github/workflows/test.yml' @@ -13,7 +16,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v1 with: - go-version: 1.13 + go-version: '1.14.x' - name: Checkout uses: actions/checkout@v2 - name: Test diff --git a/ci_test.go b/ci_test.go index 8966268..7bd29bb 100644 --- a/ci_test.go +++ b/ci_test.go @@ -740,9 +740,9 @@ func TestGitHubActions(t *testing.T) { ci: CI{ PR: PullRequest{ Revision: "abcdefg", - Number: 0, + Number: 0, }, - URL: "https://github.com/mercari/tfnotify/runs/12345", + URL: "https://github.com/mercari/tfnotify/actions/runs/12345", }, ok: true, },