Skip to content

fix: server times out when specified by CLOUD_RUN_TIMEOUT_SECONDS #727

fix: server times out when specified by CLOUD_RUN_TIMEOUT_SECONDS

fix: server times out when specified by CLOUD_RUN_TIMEOUT_SECONDS #727

Workflow file for this run

name: Java Conformance CI
on:
push:
branches:
- main
pull_request:
# Declare default permissions as read only.
permissions: read-all
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [
11.x,
]
steps:
- name: Harden Runner
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
api.github.com:443
github.com:443
objects.githubusercontent.com:443
proxy.golang.org:443
repo.maven.apache.org:443
storage.googleapis.com:443
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
with:
java-version: ${{ matrix.java }}
distribution: temurin
- name: Setup Go
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version: '1.21'
- name: Build API with Maven
run: (cd functions-framework-api/ && mvn install)
- name: Build invoker with Maven
run: (cd invoker/ && mvn install)
- name: Build invoker Maven Plugin
run: (cd function-maven-plugin/ && mvn install)
- name: Run HTTP conformance tests
uses: GoogleCloudPlatform/functions-framework-conformance/action@1041a97e93a463d9efb17dda821f3ddc0bf0024f # main
with:
functionType: 'http'
useBuildpacks: false
cmd: "'mvn -f invoker/conformance/pom.xml function:run -Drun.functionTarget=com.google.cloud.functions.conformance.HttpConformanceFunction'"
startDelay: 10
- name: Run Typed conformance tests
uses: GoogleCloudPlatform/functions-framework-conformance/action@1041a97e93a463d9efb17dda821f3ddc0bf0024f # main
with:
functionType: 'http'
declarativeType: 'typed'
useBuildpacks: false
cmd: "'mvn -f invoker/conformance/pom.xml function:run -Drun.functionTarget=com.google.cloud.functions.conformance.TypedConformanceFunction'"
startDelay: 10
- name: Run background event conformance tests
uses: GoogleCloudPlatform/functions-framework-conformance/action@1041a97e93a463d9efb17dda821f3ddc0bf0024f # main
with:
functionType: 'legacyevent'
useBuildpacks: false
validateMapping: true
cmd: "'mvn -f invoker/conformance/pom.xml function:run -Drun.functionTarget=com.google.cloud.functions.conformance.BackgroundEventConformanceFunction'"
startDelay: 10
- name: Run cloudevent conformance tests
uses: GoogleCloudPlatform/functions-framework-conformance/action@1041a97e93a463d9efb17dda821f3ddc0bf0024f # main
with:
functionType: 'cloudevent'
useBuildpacks: false
validateMapping: true
cmd: "'mvn -f invoker/conformance/pom.xml function:run -Drun.functionTarget=com.google.cloud.functions.conformance.CloudEventsConformanceFunction'"
startDelay: 10
- name: Run HTTP concurrency conformance tests
uses: GoogleCloudPlatform/functions-framework-conformance/action@1041a97e93a463d9efb17dda821f3ddc0bf0024f # main
with:
functionType: 'http'
useBuildpacks: false
validateConcurrency: true
cmd: "'mvn -f invoker/conformance/pom.xml function:run -Drun.functionTarget=com.google.cloud.functions.conformance.ConcurrentHttpConformanceFunction'"
startDelay: 10