Skip to content

chore(main): release java-function-invoker 1.3.3 #932

chore(main): release java-function-invoker 1.3.3

chore(main): release java-function-invoker 1.3.3 #932

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@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
github.com:443
repo.maven.apache.org:443
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up JDK
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0
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@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 # v2 minimum required
- name: Set up JDK
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0
with:
java-version: 17.x
distribution: temurin
- 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