GoogleCloudPlatform / functions-framework-java

FaaS (Function as a service) framework for writing portable Java functions
Apache License 2.0
133 stars 63 forks source link

chore: Add buildpack-integration-test for ff java #140

Closed kappratiksha closed 2 years ago

kappratiksha commented 2 years ago

Adding a workflow to test Functions Framework against the official GCF builders to ensure that the Java framework will work in a containerized environment. It runs HTTP and cloudevent tests similar to the local conformance test client runs, except in buildpack mode which:

  1. Builds a local version of functions-framework-api and java-function-invoker with 0.0.0-SNAPSHOT version using the latest code.
  2. Builds the function and packs it into a container using the pack and appropriate GCF builder
  3. Runs the container on docker
  4. Sends standard HTTP and cloudevent requests and verifies the response.

This is build using the reusable workflow created here.

The workflow currently tests for java11 and java17.