chore: pin eclipse formatter version and apply formatting #4
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: "17" | |
| cache: maven | |
| - name: Cache javaWhitelist | |
| uses: actions/cache@v4 | |
| with: | |
| path: javaWhitelist.jar | |
| key: javaWhitelist-latest | |
| - name: Download javaWhitelist | |
| if: steps.cache.outputs.cache-hit != 'true' | |
| run: | | |
| curl -L https://github.com/gituser12981u2/javaWhitelist/releases/latest/download/javaWhitelist.jar -o javaWhitelist.jar | |
| - name: Run whitelist checker | |
| run: | | |
| java -jar javaWhitelist.jar src/main/java | |
| - name: Verify (format check + checkstyle + compile) | |
| run: mvn -B -ntp verify |