Skip to content

Commit ec8dc7a

Browse files
committed
Include spotlessCheck in pipelines
1 parent bd332bc commit ec8dc7a

4 files changed

Lines changed: 18 additions & 15 deletions

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: Build
23

34
env:
@@ -33,13 +34,13 @@ jobs:
3334
distribution: 'temurin'
3435

3536
- name: Gradle Wrapper Validation
36-
uses: gradle/wrapper-validation-action@v2
37+
uses: gradle/actions/wrapper-validation@v4
3738

3839
- name: Grant execute permission for gradlew
3940
run: chmod +x gradlew
4041

4142
- name: Build with Gradle
42-
run: ./gradlew clean test integrationTest build shadowJar
43+
run: ./gradlew clean test integrationTest spotlessCheck build shadowJar
4344

4445
cli:
4546
name: build and test native image
@@ -73,15 +74,15 @@ jobs:
7374
mvn-toolchain-id: graalce-${{ env.GRAALCE_JDK_VERSION }}
7475

7576
- name: Gradle Wrapper Validation
76-
uses: gradle/wrapper-validation-action@v2
77+
uses: gradle/actions/wrapper-validation@v4
7778

7879
- name: Grant execute permission for gradlew
7980
run: chmod +x gradlew
8081

8182
- name: Compile native image
8283
run: ./gradlew nativeCompile -x test -x integrationTest
8384
- name: Test native image
84-
run: |
85+
run: |-
8586
_app_path=$(find ./cli-bot/build/native/nativeCompile/ -type f -name faker-bot\* -not -name \*.txt)
8687
mv "$_app_path" $RUNNER_TEMP/faker-bot
8788
# run several iterations to test various pathways when generating data

.github/workflows/docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: Deploy Docs
23

34
on:

.github/workflows/publish_snapshot.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: Publish Snapshot
23

34
env:
@@ -67,7 +68,7 @@ jobs:
6768
mvn-toolchain-vendor: GraalVM
6869
mvn-toolchain-id: graalce-${{ env.GRAALCE_JDK_VERSION }}
6970
- name: Gradle Wrapper Validation
70-
uses: gradle/wrapper-validation-action@v2
71+
uses: gradle/wrapper-validation-action@v4
7172
- name: Grant execute permission to scripts
7273
run: |
7374
chmod +x gradlew

Makefile

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ docs: ## serve documentation on the localhost
4141

4242
.PHONY: snapshot-minor
4343
snapshot-minor: ## publishes next snapshot with a minor version bump
44-
./gradlew clean test integrationTest
44+
./gradlew clean test integrationTest spotlessCheck
4545
./gradlew nativeCompile
4646
./gradlew publishToSonatype --info
4747

4848
.PHONY: pre-release-major
4949
pre-release-major: ## publishes next pre-release version with a major version bump
50-
./gradlew test integrationTest \
50+
./gradlew test integrationTest spotlessCheck \
5151
nativeCompile \
5252
publishToSonatype \
5353
closeSonatypeStagingRepository \
@@ -57,7 +57,7 @@ pre-release-major: ## publishes next pre-release version with a major version bu
5757

5858
.PHONY: pre-release-minor
5959
pre-release-minor: ## publishes next pre-release with a minor version bump
60-
./gradlew test integrationTest \
60+
./gradlew test integrationTest spotlessCheck \
6161
nativeCompile \
6262
publishToSonatype \
6363
closeSonatypeStagingRepository \
@@ -67,7 +67,7 @@ pre-release-minor: ## publishes next pre-release with a minor version bump
6767

6868
.PHONY: pre-release-patch
6969
pre-release-patch: ## publishes next pre-release with a patch version bump
70-
./gradlew test integrationTest \
70+
./gradlew test integrationTest spotlessCheck \
7171
nativeCompile \
7272
publishToSonatype \
7373
closeSonatypeStagingRepository \
@@ -77,7 +77,7 @@ pre-release-patch: ## publishes next pre-release with a patch version bump
7777

7878
.PHONY: next-pre-release
7979
next-pre-release: ## publishes next pre-release version
80-
./gradlew test integrationTest \
80+
./gradlew test integrationTest spotlessCheck \
8181
nativeCompile \
8282
publishToSonatype \
8383
closeSonatypeStagingRepository \
@@ -87,7 +87,7 @@ next-pre-release: ## publishes next pre-release version
8787

8888
.PHONY: promote-to-release
8989
promote-to-release: ## publishes next release from the current pre-release version
90-
./gradlew test integrationTest \
90+
./gradlew test integrationTest spotlessCheck \
9191
nativeCompile \
9292
publishToSonatype \
9393
closeSonatypeStagingRepository \
@@ -97,7 +97,7 @@ promote-to-release: ## publishes next release from the current pre-release versi
9797

9898
.PHONY: release-major
9999
release-major: ## publishes next major release version
100-
./gradlew test integrationTest \
100+
./gradlew test integrationTest spotlessCheck \
101101
nativeCompile \
102102
publishToSonatype \
103103
closeSonatypeStagingRepository \
@@ -107,7 +107,7 @@ release-major: ## publishes next major release version
107107

108108
.PHONY: release-minor
109109
release-minor: ## publishes next minor release version
110-
./gradlew test integrationTest \
110+
./gradlew test integrationTest spotlessCheck \
111111
tag \
112112
nativeCompile \
113113
publishToSonatype \
@@ -117,7 +117,7 @@ release-minor: ## publishes next minor release version
117117

118118
.PHONY: release-patch
119119
release-patch: ## publishes next patch release version
120-
./gradlew test integrationTest \
120+
./gradlew test integrationTest spotlessCheck \
121121
nativeCompile \
122122
publishToSonatype \
123123
closeSonatypeStagingRepository \
@@ -130,7 +130,7 @@ release: check_java ## publishes the next release with a specified VERSION
130130
@:$(call check_defined, VERSION, semantic version string - 'X.Y.Z(-rc.\d+)?')
131131

132132
# run tests
133-
./gradlew test integrationTest -Pversion=$(VERSION)
133+
./gradlew test integrationTest spotlessCheck -Pversion=$(VERSION)
134134
# build and test native image
135135
./gradlew nativeCompile -Pversion=$(VERSION) --info
136136
./cli-bot/build/native/nativeCompile/faker-bot_$(VERSION) list --verbose >/dev/null || false

0 commit comments

Comments
 (0)