diff --git a/.gitea/workflows/maven.yml b/.gitea/workflows/maven.yml new file mode 100644 index 00000000..16a3b9cd --- /dev/null +++ b/.gitea/workflows/maven.yml @@ -0,0 +1,22 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven +# For setup-java see: https://github.com/actions/setup-java#Usage + +name: Java CI with Maven + +on: [push, pull_request] + +jobs: + build: + + runs-on: self-hosted + + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-java@v3 # the log states the default ~/.m2/toolchains.xml is being created pointing to the JDK + with: + distribution: 'adopt' # for latest JDKs use temurin https://blog.adoptopenjdk.net/2021/08/goodbye-adoptopenjdk-hello-adoptium/ + java-version: '11' + cache: 'maven' #cache/restore any dependencies to improve the workflow execution time + - name: Build with Maven + run: mvn -B package --file pom.xml \ No newline at end of file