Skip to content

Commit

Permalink
Move checkstyle testing to testAndGenerateReleaseFile
Browse files Browse the repository at this point in the history
  • Loading branch information
yadobler committed Sep 10, 2024
1 parent 7e3c3de commit 8151a04
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ on:
branches: [ "master" ]

jobs:
# This tests if the application can be built on all platforms (no tests / checkstyle)
buildOnAllPlatforms:
strategy:
matrix:
Expand All @@ -31,8 +32,9 @@ jobs:
- name: Setup Gradle
uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
- name: Build with Gradle Wrapper
run: ./gradlew clean build -x test

run: ./gradlew clean build -x test -x checkstyleMain -x checkStyleTest

# This tests if the build, checkstyle and jUnit tests pass, then
testAndGenerateReleaseFile:
strategy:
matrix:
Expand All @@ -49,7 +51,10 @@ jobs:
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0


- name: run checkstyle
run: ./gradlew checkstyleTest checkstyleMain

- name: run gradle test
run: ./gradlew test

Expand Down

0 comments on commit 8151a04

Please sign in to comment.