name: CI on: push: branches: [main] pull_request: branches: [main] jobs: build: runs-on: ubuntu-latest container: maven:3.9-eclipse-temurin-17 steps: - name: Checkout uses: actions/checkout@v4 - name: Cache Maven dependencies uses: actions/cache@v4 with: path: ~/.m2/repository key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} restore-keys: | ${{ runner.os }}-maven- - name: Build and test run: mvn -B clean verify - name: Upload jars if: success() uses: actions/upload-artifact@v4 with: name: votenetwork-jars path: | velocity/target/VoteNetwork-Velocity.jar spigot/target/VoteNetwork-Spigot.jar retention-days: 14