From a8f34aa66b9d3bf74123b2d506c1b0e563f3a6bb Mon Sep 17 00:00:00 2001 From: Cathrine Kristiansen Date: Mon, 9 Mar 2026 22:34:54 +0100 Subject: [PATCH 1/8] Create maven-publish.yml --- .github/workflows/maven-publish.yml | 34 +++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/maven-publish.yml diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml new file mode 100644 index 0000000..4a20d1a --- /dev/null +++ b/.github/workflows/maven-publish.yml @@ -0,0 +1,34 @@ +# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created +# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path + +name: Maven Package + +on: + release: + types: [created] + +jobs: + build: + + runs-on: [ self-hosted ] + permissions: + contents: read + packages: write + + steps: + - uses: actions/checkout@v4 + - name: Set up JDK 11 + uses: actions/setup-java@v4 + with: + java-version: '11' + 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: Build with Maven + run: mvn -B package --file pom.xml + + - name: Publish to GitHub Packages Apache Maven + run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml + env: + GITHUB_TOKEN: ${{ github.token }} From 7cf38d387e9ddaa304c26694d37be0a242b49c92 Mon Sep 17 00:00:00 2001 From: Cathrine Kristiansen Date: Mon, 9 Mar 2026 22:40:36 +0100 Subject: [PATCH 2/8] Update ci.yml --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dd77cae..f108549 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,7 @@ on: jobs: test: - runs-on: ubuntu-latest + runs-on: [self-hosted, Windows] steps: - uses: actions/checkout@v4 @@ -19,4 +19,4 @@ jobs: java-version: "25" cache: maven - - run: mvn -B test \ No newline at end of file + - run: mvn -B test From e357c399afc34134cd15657edc08169f8c9adc0d Mon Sep 17 00:00:00 2001 From: Cathrine Kristiansen Date: Mon, 9 Mar 2026 22:57:46 +0100 Subject: [PATCH 3/8] Update ci.yml --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f108549..d7f5a10 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,4 +19,5 @@ jobs: java-version: "25" cache: maven - - run: mvn -B test + - working-directory: helpmehelpapplication + run: mvn -B test From b564126b3355d61e67a037517e1b7063ba066eb3 Mon Sep 17 00:00:00 2001 From: Cathrine Kristiansen Date: Tue, 10 Mar 2026 12:12:22 +0100 Subject: [PATCH 4/8] Update ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d7f5a10..eac943d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,7 @@ on: jobs: test: - runs-on: [self-hosted, Windows] + runs-on: self-hosted steps: - uses: actions/checkout@v4 From 4d0daae824b896cb7e8cb4a9b06d8ee7f3d0226a Mon Sep 17 00:00:00 2001 From: Robin Strand Prestmo Date: Tue, 10 Mar 2026 20:47:27 +0100 Subject: [PATCH 5/8] Update README.md Added Robin's full name --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c2b4d1f..8ee4bba 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ Consists of: Cathrine Kristiansen, Adrian Balunan, Roar Fagerkind, Robin Prestmo - Team number: `6` - Team members: - - Robin Prestmo - Product Owner + - Robin Strand Prestmo - Product Owner - Adrian Balunan - Scrum Master - Cathrine Kristiansen - Archive and Document Responsible - Roar Fagerkind - Software Quality Responsible From 324a2c8a22bef1ddc5e8b460c936759cc068c879 Mon Sep 17 00:00:00 2001 From: Robin Strand Prestmo Date: Tue, 10 Mar 2026 20:49:35 +0100 Subject: [PATCH 6/8] Update ci.yml Changed runs-on: til [self-hosted, macOS, ARM64] --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eac943d..68dd315 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,7 @@ on: jobs: test: - runs-on: self-hosted + runs-on: [self-hosted, macOS, ARM64] steps: - uses: actions/checkout@v4 From 3062e04f9ff6290dcfb6715ae956b2e934f33a59 Mon Sep 17 00:00:00 2001 From: Robin Strand Prestmo Date: Tue, 10 Mar 2026 20:53:21 +0100 Subject: [PATCH 7/8] Update ci.yml Added develop branch --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 68dd315..19000d1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,9 +2,9 @@ name: ci on: push: - branches: [main] + branches: [main, develop] pull_request: - branches: [main] + branches: [main, develop] jobs: test: From 8522115e16851c1b140a30df2f0278810977893c Mon Sep 17 00:00:00 2001 From: Robin Strand Prestmo Date: Tue, 10 Mar 2026 20:59:58 +0100 Subject: [PATCH 8/8] Update ci.yml Runs-on: self-hosted --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 19000d1..a4d5bd8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,7 @@ on: jobs: test: - runs-on: [self-hosted, macOS, ARM64] + runs-on: self-hosted steps: - uses: actions/checkout@v4