22 lines
563 B
YAML
22 lines
563 B
YAML
name: Format
|
|
|
|
on: [ push, pull_request ]
|
|
|
|
jobs:
|
|
|
|
formatting:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4 # v2 minimum required
|
|
- uses: actions/setup-java@v4
|
|
with:
|
|
distribution: 'temurin' # See 'Supported distributions' for available options
|
|
java-version: '21'
|
|
- name: Check IntelliJ Formatting
|
|
uses: sidhant92/intellij-format-action@v1
|
|
with:
|
|
tool_name: 'IntelliJ Diff'
|
|
fail_on_changes: true
|
|
path: './MyINPulse-back/'
|
|
file_mask: '*.java'
|