-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: run integration tests on pull request
- Loading branch information
1 parent
b16760a
commit f27c4bd
Showing
5 changed files
with
85 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Buildpack Integration Test | ||
on: | ||
workflow_call: | ||
inputs: | ||
commit-sha: | ||
description: Commit sha of the functions framework to be used | ||
type: string | ||
required: true | ||
jobs: | ||
go113-buildpack-test: | ||
uses: GoogleCloudPlatform/functions-framework-conformance/.github/workflows/buildpack-integration-test.yml@v1.8.4 | ||
with: | ||
http-builder-source: 'testdata/conformance/function' | ||
http-builder-target: 'declarativeHTTP' | ||
cloudevent-builder-source: 'testdata/conformance/function' | ||
cloudevent-builder-target: 'declarativeCloudEvent' | ||
prerun: 'testdata/conformance/prerun.sh ${{ inputs.commit-sha }} testdata/conformance/function' | ||
builder-runtime: 'go113' | ||
builder-runtime-version: '1.13' | ||
go116-buildpack-test: | ||
uses: GoogleCloudPlatform/functions-framework-conformance/.github/workflows/buildpack-integration-test.yml@v1.8.4 | ||
with: | ||
http-builder-source: 'testdata/conformance/function' | ||
http-builder-target: 'declarativeHTTP' | ||
cloudevent-builder-source: 'testdata/conformance/function' | ||
cloudevent-builder-target: 'declarativeCloudEvent' | ||
prerun: 'testdata/conformance/prerun.sh ${{ inputs.commit-sha }} testdata/conformance/function' | ||
builder-runtime: 'go116' | ||
builder-runtime-version: '1.16' | ||
non-declarative-buildpack-test: | ||
uses: GoogleCloudPlatform/functions-framework-conformance/.github/workflows/buildpack-integration-test.yml@v1.8.4 | ||
with: | ||
http-builder-source: 'testdata/conformance/nondeclarative' | ||
http-builder-target: 'HTTP' | ||
cloudevent-builder-source: 'testdata/conformance/nondeclarative' | ||
cloudevent-builder-target: 'CloudEvent' | ||
prerun: 'testdata/conformance/prerun.sh ${{ inputs.commit-sha }} testdata/conformance/nondeclarative' | ||
builder-runtime: 'go116' | ||
builder-runtime-version: '1.16' |
20 changes: 20 additions & 0 deletions
20
.github/workflows/buildpack-integration-test-postsubmit.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
|
||
# Validates Functions Framework with GCF buildpacks. | ||
name: Buildpack Integration Test Post-Submit | ||
on: | ||
push: | ||
branches: | ||
- master | ||
workflow_dispatch: | ||
# Runs every day on 12:00 AM PST | ||
schedule: | ||
- cron: "0 0 * * *" | ||
|
||
# Declare default permissions as read only. | ||
permissions: read-all | ||
|
||
jobs: | ||
buildpack-postsubmit-test: | ||
uses: ./.github/workflows/re-usable/buildpack-integration-test-base.yml | ||
with: | ||
commit-sha: ${{ github.sha }} |
14 changes: 14 additions & 0 deletions
14
.github/workflows/buildpack-integration-test-presubmit.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
# Validates Functions Framework with GCF buildpacks. | ||
name: Buildpack Integration Test Pre-Submit | ||
on: | ||
pull_request: | ||
|
||
# Declare default permissions as read only. | ||
permissions: read-all | ||
|
||
jobs: | ||
buildpack-presubmit-test: | ||
uses: ./.github/workflows/re-usable/buildpack-integration-test-base.yml | ||
with: | ||
commit-sha: ${{ github.event.pull_request.head.sha }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters