fix tests, adjust gh actions #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Linter | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths: [src/**] | |
pull_request: | |
branches: | |
- main | |
jobs: | |
linter: | |
name: Java Linter | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
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" | |
github-token: ${{ secrets.GITHUB_TOKEN }} |