SR-Game/.forgejo/workflows/format.yaml
unurled 4d73b53bfb
Some checks failed
Build / build (push) Successful in 1m52s
Format / formatting (push) Failing after 1m23s
add setup java to format task
2024-10-11 14:26:08 +00:00

22 lines
No EOL
500 B
YAML

name: Format
run-name: ${{ github.actor }} is formatting
on: [ push, pull_request ]
jobs:
formatting:
runs-on: docker
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: 'gradle'
- uses: axel-op/googlejavaformat-action@v3
with:
args: "--replace"
skip-commit: true
- name: Print diffs
run: git --no-pager diff --exit-code