Skip to content

Commit f571bcb

Browse files
committed
Add format check for Java code under managed
1 parent 9bef413 commit f571bcb

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
- README.md
1111
- 'docs/**'
1212
- 'architecture/**'
13+
- 'managed/**'
1314

1415
pull_request:
1516
branches:
@@ -18,6 +19,7 @@ on:
1819
- README.md
1920
- 'docs/**'
2021
- 'architecture/**'
22+
- 'managed/**'
2123

2224
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
2325
jobs:
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Lint java code under managed
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- '2.6'
8+
paths:
9+
- .github/workflows/managed-java-checks.yaml
10+
- managed/**/*.java
11+
12+
pull_request:
13+
branches:
14+
- master
15+
- '2.6'
16+
paths:
17+
- .github/workflows/managed-java-checks.yaml
18+
- managed/**/*.java
19+
20+
21+
jobs:
22+
lint-checks:
23+
name: Lint checks
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: Checkout
27+
uses: actions/checkout@v2
28+
29+
- name: Install Java
30+
uses: actions/setup-java@v2
31+
with:
32+
distribution: adopt
33+
java-version: 8
34+
35+
- name: Check formatting
36+
run: sbt javafmtCheckAll
37+
working-directory: managed/
38+

0 commit comments

Comments
 (0)