Skip to content

Update lint.yml

Update lint.yml #2

Workflow file for this run

name: Linter
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
linter:
name: Java Linter
runs-on: ubuntu-latest
steps:
- name: Checkout code
- uses: actions/checkout@v4 # v2 minimum required
- name: Set up JDK 17
- uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Google Java Format
- uses: axel-op/googlejavaformat-action@v3
with:
args: "--skip-sorting-imports --replace"