Skip to content

Commit 50ab50c

Browse files
committed
ICU-23091 Fix CI job for Java formatter to start in ICU4J root dir
1 parent 9241de4 commit 50ab50c

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/icu4j.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ jobs:
8787
${{ runner.os }}-maven-
8888
lookup-only: true
8989
- name: Check Java style
90-
run: mvn spotless:check || (echo "Style checker failed. Formatting changes can be applied by 'mvn spotless:apply'" && exit 1)
90+
run: |
91+
cd ic4j;
92+
mvn spotless:check || (echo "Style checker failed. Formatting changes can be applied by 'mvn spotless:apply'" && exit 1)
9193
9294
# ICU4J build and unit test using Maven
9395
# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven

icu4j/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,11 @@
469469
<artifactId>exec-maven-plugin</artifactId>
470470
<version>3.4.1</version>
471471
</plugin>
472+
<!--
473+
Spotless info:
474+
- How to preview what `mvn spotless:apply` will do: https://github.com/diffplug/spotless/tree/main/plugin-maven#how-do-i-preview-what-mvn-spotlessapply-will-do
475+
- Apply Spotless to specific files: https://github.com/diffplug/spotless/tree/main/plugin-maven#can-i-apply-spotless-to-specific-files
476+
-->
472477
<plugin>
473478
<groupId>com.diffplug.spotless</groupId>
474479
<artifactId>spotless-maven-plugin</artifactId>

0 commit comments

Comments
 (0)