Skip to content

Commit

Permalink
Merge pull request #1342 from buildpacks-community/update-unit-tests-…
Browse files Browse the repository at this point in the history
…0-12
  • Loading branch information
tomkennedy513 authored Oct 9, 2023
2 parents cbe4b20 + e24879b commit 057a103
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
- release/**
tags:
- v[0-9]+.[0-9]+.[0-9]+-?**
pull_request:
branches:
- release/**

defaults:
run:
Expand Down
4 changes: 2 additions & 2 deletions pkg/git/fetch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()))

Expand Down

0 comments on commit 057a103

Please sign in to comment.