From c5030be01a59d36131300f603702b522677dcf57 Mon Sep 17 00:00:00 2001 From: lieght <49651652+BAFGdeJong@users.noreply.github.com> Date: Sun, 21 Sep 2025 17:44:25 +0200 Subject: [PATCH] Github push formatting checks. --- .github/workflows/checks.yaml | 31 ++++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/.github/workflows/checks.yaml b/.github/workflows/checks.yaml index 6ff4540..d9df119 100644 --- a/.github/workflows/checks.yaml +++ b/.github/workflows/checks.yaml @@ -1,4 +1,4 @@ -name: Run Checks +name: Checks on: push: @@ -9,19 +9,32 @@ on: - 'main' jobs: - testing: - name: javamvn-unittests + formatting-check: + name: Follow Google Formatting Guidelines runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v5 + - uses: actions/checkout@v5 + - uses: actions/setup-java@v5 + with: + java-version: '24' + distribution: 'temurin' + cache: maven + - name: Run Format Check + run: mvn spotless:check - - name: Set up JDK 24 - uses: actions/setup-java@v5 + tests: + name: Unittests + runs-on: ${{ matrix.os }} + needs: formatting-check + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + steps: + - uses: actions/checkout@v5 + - uses: actions/setup-java@v5 with: java-version: '24' distribution: 'temurin' cache: maven - name: Run Unittests - run: mvn -B test \ No newline at end of file + run: mvn -B test