Skip to content

fix: server times out when specified by CLOUD_RUN_TIMEOUT_SECONDS #769

fix: server times out when specified by CLOUD_RUN_TIMEOUT_SECONDS

fix: server times out when specified by CLOUD_RUN_TIMEOUT_SECONDS #769

Workflow file for this run

name: Java Lint CI
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
github.com:443
repo.maven.apache.org:443
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Set up JDK
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
with:
java-version: 11.x
distribution: temurin
- name: Build API with Maven
run: (cd functions-framework-api/ && mvn install)
- name: Lint Functions Framework API
run: (cd functions-framework-api/ && mvn clean verify -DskipTests -P lint)
- name: Build Invoker with Maven
run: (cd functions-framework-api/ && mvn install)
- name: Lint Invoker
run: (cd invoker/ && mvn clean verify -DskipTests -P lint)
formatting:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 # v2 minimum required
- name: Run formatter
id: formatter
uses: axel-op/googlejavaformat-action@dbff853fb823671ec5781365233bf86543b13215 # v3
with:
args: "--replace"
skip-commit: true
- name: Print diffs
run: git --no-pager diff --exit-code