From f2b6cf36e223b2823a8e58ba56a47ee0ca82c445 Mon Sep 17 00:00:00 2001 From: Taras Drozdovskyi Date: Mon, 2 Dec 2024 10:23:37 +0200 Subject: [PATCH] ci: Update the java format checker workflow (#666) Signed-off-by: Taras Drozdovskyi --- .github/workflows/java-format-checker.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/java-format-checker.yml b/.github/workflows/java-format-checker.yml index 2e0c280b..ca9f4138 100644 --- a/.github/workflows/java-format-checker.yml +++ b/.github/workflows/java-format-checker.yml @@ -16,6 +16,12 @@ jobs: egress-policy: audit - name: Checkout repository uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - name: Set up JDK 17 + uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0 + with: + java-version: '17' + distribution: 'temurin' + cache: maven - uses: axel-op/googlejavaformat-action@0dc4ef525e7ed73d8dff50b1b062a4d441d014b5 # v3.6 with: args: "--aosp --skip-javadoc-formatting --skip-reflowing-long-strings --skip-sorting-imports --replace"