-
Notifications
You must be signed in to change notification settings - Fork 268
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
50e8d7e
commit f007ee9
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Code Convention Verification | ||
|
||
on: | ||
push: | ||
branches: | ||
- "master" | ||
- "*-rc" | ||
pull_request: | ||
types: [opened, reopened, synchronize] | ||
branches: | ||
- "**" | ||
|
||
jobs: | ||
checkstyle-and-spotless: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Java & Gradle | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
cache: 'gradle' | ||
|
||
- uses: actions/cache@v4 | ||
name: Cache Gradle Wrapper | ||
id: cache-gradle-wrapper | ||
with: | ||
path: | | ||
gradle/wrapper/gradle-wrapper.jar | ||
key: gradle-wrapper-v1 | ||
|
||
- name: Get Gradle wrapper | ||
if: steps.cache-gradle-wrapper.outputs.cache-hit != 'true' | ||
run: | | ||
./configure.sh | ||
- name: Run Checkstyle | ||
run: | | ||
./gradlew clean rskj-core:checkstyleMain checkstyleTest | ||
- name: Run Spotless Check | ||
run: | | ||
./gradlew clean rskj-core:spotlessCheck |