Skip to content

Commit c6aa678

Browse files
committed
Add GH format check action
1 parent 9bdcff4 commit c6aa678

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: check google-java-format
2+
permissions:
3+
contents: read
4+
5+
on:
6+
push:
7+
branches:
8+
- 'dev'
9+
pull_request:
10+
branches:
11+
- 'dev'
12+
13+
jobs:
14+
formatting:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Set up Java 17
19+
uses: actions/setup-java@v4.6.0
20+
with:
21+
distribution: "liberica"
22+
java-package: jdk+fx
23+
java-version: 17
24+
- uses: axel-op/googlejavaformat-action@v4
25+
with:
26+
args: "--skip-sorting-imports --set-exit-if-changed"

0 commit comments

Comments
 (0)