fix(pipeline): Remove --no-daemon, specify gradle workspace

This commit is contained in:
2025-11-20 09:02:43 +01:00
parent f440ff6fb2
commit 4bb2f818a4
3 changed files with 8 additions and 7 deletions

View File

@@ -120,6 +120,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
RUNNER_TOOL_CACHE: /toolcache RUNNER_TOOL_CACHE: /toolcache
GRADLE_USER_HOME: ${{ gitea.workspace }}/.gradle
defaults: defaults:
run: run:
@@ -139,8 +140,8 @@ jobs:
uses: actions/cache@v4 uses: actions/cache@v4
with: with:
path: | path: |
~/.gradle/caches ${{ gitea.workspace }}/.gradle/caches
~/.gradle/wrapper ${{ gitea.workspace }}/.gradle/wrapper
legalconsenthub-backend/.gradle legalconsenthub-backend/.gradle
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: | restore-keys: |
@@ -150,13 +151,13 @@ jobs:
run: chmod +x gradlew run: chmod +x gradlew
- name: Build application - name: Build application
run: ./gradlew build -x test --no-daemon run: ./gradlew build -x test
- name: Run ktlint check - name: Run ktlint check
run: ./gradlew ktlintCheck --no-daemon run: ./gradlew ktlintCheck
- name: Run tests - name: Run tests
run: ./gradlew test --no-daemon run: ./gradlew test
env: env:
SPRING_PROFILES_ACTIVE: testcontainers SPRING_PROFILES_ACTIVE: testcontainers

View File

@@ -2,4 +2,4 @@
## Pipeline Triggering ## Pipeline Triggering
Trigger count: 10 Trigger count: 11

View File

@@ -2,4 +2,4 @@
## Pipeline Triggering ## Pipeline Triggering
Trigger count: 10 Trigger count: 11