ci: add diagnostics; set headless for tests; re-run pipeline #7
This file contains hidden or 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
| name: CI Build | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Java 21 (run Gradle) | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: 21 | |
| - name: Set up Java 25 (toolchain) | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: 25 | |
| - name: Gradle Build | |
| uses: gradle/gradle-build-action@v3 | |
| with: | |
| gradle-version: 8.10.2 | |
| arguments: build | |
| - name: Diagnostic (versions + stacktrace) | |
| run: | | |
| java -version | |
| gradle -v | |
| gradle build --stacktrace --info || true |