Skip to content

Commit 3e621da

Browse files
authored
feat: add prerun hook to buildpack integration test (#101)
This gives the various FF repos the chance to execute bash commands to setup the test function to use the GitHub commit under test before running the buildpack test.
1 parent f17bc08 commit 3e621da

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/buildpack-integration-test.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ on:
3030
description: Background function target
3131
type: string
3232
required: false
33+
prerun:
34+
description: Bash script to run before test; relative to repo root
35+
type: string
36+
required: false
3337
builder-tag:
3438
description: GCF builder image tag
3539
type: string
@@ -129,6 +133,9 @@ jobs:
129133
- name: Check out repository
130134
if: ${{ matrix.builder-source }}
131135
uses: actions/checkout@v3
136+
- name: Prerun script
137+
if: ${{ matrix.builder-source && inputs.prerun }}
138+
run: bash -x ${{ inputs.prerun }}
132139
- name: Buildpack integration test
133140
if: ${{ matrix.builder-source }}
134141
run: |

0 commit comments

Comments
 (0)