Skip to content

Commit

Permalink
Adding code-quality-check job
Browse files Browse the repository at this point in the history
  • Loading branch information
rmoreliovlabs committed Sep 6, 2024
1 parent 50e8d7e commit 5f73a86
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -327,3 +327,35 @@ jobs:
- name: Run tests
run: |
./gradlew --no-daemon --stacktrace integrationTest
code-quality-check:
runs-on: ubuntu-latest
container:
image: openjdk:8-jdk
steps:
- uses: actions/checkout@v4

- uses: actions/cache@v4
name: Cache Gradle
id: cache-gradle
with:
path: |
.gradle/caches
gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Get gradle wrapper and build dependencies
if: steps.cache-gradle.outputs.cache-hit != 'true'
run: |
./configure.sh
./gradlew --no-daemon dependencies
- name: Run Checkstyle Checks
run: |
./gradlew clean checkstyleMain checkstyleTest checkstyleJmh checkstyleIntegrationTest
- name: Run Spotless Check
run: |
./gradlew spotlessCheck

0 comments on commit 5f73a86

Please sign in to comment.