From 516311bb1c44197b2381bd76903763de9996e0aa Mon Sep 17 00:00:00 2001 From: Tommy Aas Hjelle Date: Wed, 4 Feb 2026 16:58:00 +0100 Subject: [PATCH] Feat: Create main.yml Might not work initially, requires testing --- .github/workflows/main.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..268925a --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,29 @@ +# This workflow will run maven tests when changes are pushed on main, or whenever a pull request is initiated. + +name: Maven Tests +on: + push: + branches: [main] + pull_request: + branches: [ "main" ] + workflow_dispatch: + +jobs: + build: + runs-on: [self-hosted] + permissions: + contents: read + packages: write + + steps: + - uses: actions/checkout@v4 + - name: Set up JDK 25 + uses: actions/setup-java@v4 + with: + java-version: '25' + distribution: 'temurin' + server-id: github # Value of the distributionManagement/repository/id field of the pom.xml + settings-path: ${{ github.workspace }} # location for the settings.xml file + + - name: Run tests + run: mvn clean test