Skip to content

release version 2.22.9 #21

release version 2.22.9

release version 2.22.9 #21

Workflow file for this run

#
# Copyright 2024-2026 the original author or authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
name: 👀 Linter
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
permissions:
contents: read
jobs:
linter:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up JDK 8
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'temurin'
- name: Check code formatting
run: |
# Check if any files need formatting
if ! java -jar .dev_tools/google-java-format-1.7-all-deps.jar \
--dry-run --set-exit-if-changed \
$(find . -type f -name "*.java" | grep "./*/src/.*java"); then
echo "❌ Code formatting issues found!"
echo "Please run 'bash lint.sh' locally to fix formatting issues."
exit 1
fi
echo "✅ All files are properly formatted"