Reduce code duplication in command-api-v2 (sponge) by introducing a common sub-module and fix some formatting issues #958
Workflow file for this run
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
name: Build | |
on: [push, pull_request] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
java: [ 17-jdk, 21-jdk ] | |
runs-on: ubuntu-22.04 | |
container: | |
image: eclipse-temurin:${{ matrix.java }} | |
options: --user root | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: gradle/actions/wrapper-validation@v3 | |
- run: ./gradlew check build publishToMavenLocal --stacktrace -Porg.gradle.parallel.threads=4 --warning-mode=fail | |
- uses: Juuxel/publish-checkstyle-report@v1 | |
if: ${{ failure() }} | |
with: | |
reports: | | |
**/build/reports/checkstyle/*.xml | |
- uses: actions/upload-artifact@v4 | |
if: ${{ matrix.java == '21-jdk' }} | |
with: | |
name: Main Artifacts | |
path: build/libs/ | |
- uses: actions/upload-artifact@v4 | |
if: ${{ matrix.java == '21-jdk' }} | |
with: | |
name: Modules Artifacts | |
path: ./**/build/libs/ | |
- uses: actions/upload-artifact@v4 | |
if: ${{ matrix.java == '21-jdk' }} | |
with: | |
name: Maven Local | |
path: /root/.m2/repository |