diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b811a289b..f6c10ba1e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -7,6 +7,9 @@ on: - release/** tags: - v[0-9]+.[0-9]+.[0-9]+-?** + pull_request: + branches: + - release/** defaults: run: diff --git a/pkg/git/fetch_test.go b/pkg/git/fetch_test.go index 6695372b5..7d32ddd07 100644 --- a/pkg/git/fetch_test.go +++ b/pkg/git/fetch_test.go @@ -90,10 +90,10 @@ func testGitCheckout(t *testing.T, when spec.G, it spec.S) { }) it("preserves executable permission", func() { - err := fetcher.Fetch(testDir, "https://github.com/pivotal/kpack", "main", metadataDir) + err := fetcher.Fetch(testDir, "https://github.com/pivotal/kpack", "b8c0d491135595cc00ab78f6214bef8a7a20afd8", metadataDir) require.NoError(t, err) - fileInfo, err := os.Lstat(path.Join(testDir, "hack", "apply.sh")) + fileInfo, err := os.Lstat(path.Join(testDir, "hack", "local.sh")) require.NoError(t, err) require.True(t, isExecutableByAll(fileInfo.Mode()))