Merge pull request 'fix(pipeline): Switch to gradle action' (#17) from fix/GradleBuildError into main

Reviewed-on: https://gitea.lugnas.de/denis/legalconsenthub/pulls/17
This commit is contained in:
2025-11-20 16:48:09 +01:00
2 changed files with 11 additions and 16 deletions

View File

@@ -7,7 +7,7 @@ on:
- 'legalconsenthub/**'
- 'legalconsenthub-backend/**'
- 'api/**'
- '.gitea/workflows/ci-cd.yaml'
- '.gitea/workflows/pipeline.yaml'
push:
branches:
- main
@@ -15,7 +15,11 @@ on:
- 'legalconsenthub/**'
- 'legalconsenthub-backend/**'
- 'api/**'
- '.gitea/workflows/ci-cd.yaml'
- '.gitea/workflows/pipeline.yaml'
concurrency:
group: ci-${{ gitea.ref }}
cancel-in-progress: true
jobs:
frontend:
@@ -131,19 +135,8 @@ jobs:
distribution: 'temurin'
java-version: '21'
- name: Setup Gradle cache
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
legalconsenthub-backend/.gradle
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Make gradlew executable
run: chmod +x gradlew
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Build application
run: ./gradlew build -x test
@@ -155,6 +148,8 @@ jobs:
run: ./gradlew test
env:
SPRING_PROFILES_ACTIVE: testcontainers
# Fixes Ryuk testcontainers error during test (https://github.com/testcontainers/testcontainers-java/issues/7036)
TESTCONTAINERS_HOST_OVERRIDE: host.docker.internal
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

View File

@@ -2,4 +2,4 @@
## Pipeline Triggering
Trigger count: 12
Trigger count: 14