From 4eb7682f86ab281697429a6eee34531100f747b5 Mon Sep 17 00:00:00 2001 From: Caroline Nordbrandt Date: Fri, 8 May 2026 11:42:39 +0200 Subject: [PATCH 1/2] Add CI pipeline configuration for automated builds and tests --- .github/workflows/ci.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..3ef5555 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,29 @@ +name: CI Pipeline + +on: + push: + branches: [ main, develop ] + pull_request: + branches: [ main, develop ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Java + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: '25' + cache: 'maven' + + - name: Make Maven wrapper executable + run: chmod +x ./mvnw + + - name: Build and test with Maven + run: ./mvnw clean verify + From 1ca65c6381bcf8c2a0e9ffac94c5f5e6124ec7c1 Mon Sep 17 00:00:00 2001 From: Caroline Nordbrandt Date: Fri, 8 May 2026 11:51:03 +0200 Subject: [PATCH 2/2] Update test configuration in ProjectBifrostApplicationTests for isolated testing with mock properties --- .../projectbifrost/ProjectBifrostApplicationTests.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/test/java/org/example/projectbifrost/ProjectBifrostApplicationTests.java b/src/test/java/org/example/projectbifrost/ProjectBifrostApplicationTests.java index 02c4fb2..5f82e39 100644 --- a/src/test/java/org/example/projectbifrost/ProjectBifrostApplicationTests.java +++ b/src/test/java/org/example/projectbifrost/ProjectBifrostApplicationTests.java @@ -5,7 +5,11 @@ import org.springframework.context.annotation.Import; @Import(TestcontainersConfiguration.class) -@SpringBootTest +@SpringBootTest(properties = { + "openrouter.api.key=test-key", + "openrouter.model=test-model", + "openrouter.base-url=test-url" +}) class ProjectBifrostApplicationTests { @Test