Skip to content

Commit 1fd75c4

Browse files
author
Kenneth Rosario
authored
chore: run buildpack tests on pull request (#176)
1 parent 57bf511 commit 1fd75c4

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,23 @@ on:
44
push:
55
branches:
66
- main
7+
pull_request:
78
workflow_dispatch:
9+
# Runs every day on 12:00 AM PST
10+
schedule:
11+
- cron: "0 0 * * *"
812

913
# Declare default permissions as read only.
1014
permissions: read-all
1115

1216
jobs:
1317
ruby30-buildpack-test:
14-
uses: GoogleCloudPlatform/functions-framework-conformance/.github/workflows/[email protected].1
18+
uses: GoogleCloudPlatform/functions-framework-conformance/.github/workflows/[email protected].5
1519
with:
1620
http-builder-source: 'test/conformance'
1721
http-builder-target: 'http_func'
1822
cloudevent-builder-source: 'test/conformance'
1923
cloudevent-builder-target: 'cloudevent_func'
20-
prerun: 'test/conformance/prerun.sh ${{ github.sha }}'
24+
prerun: ${{format('test/conformance/prerun.sh {0} testdata/conformance/function', github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha )}}
2125
builder-runtime: 'ruby30'
26+
builder-runtime-version: '3.0'

0 commit comments

Comments
 (0)