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:
@@ -7,7 +7,7 @@ on:
|
|||||||
- 'legalconsenthub/**'
|
- 'legalconsenthub/**'
|
||||||
- 'legalconsenthub-backend/**'
|
- 'legalconsenthub-backend/**'
|
||||||
- 'api/**'
|
- 'api/**'
|
||||||
- '.gitea/workflows/ci-cd.yaml'
|
- '.gitea/workflows/pipeline.yaml'
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
@@ -15,7 +15,11 @@ on:
|
|||||||
- 'legalconsenthub/**'
|
- 'legalconsenthub/**'
|
||||||
- 'legalconsenthub-backend/**'
|
- 'legalconsenthub-backend/**'
|
||||||
- 'api/**'
|
- 'api/**'
|
||||||
- '.gitea/workflows/ci-cd.yaml'
|
- '.gitea/workflows/pipeline.yaml'
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ci-${{ gitea.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
frontend:
|
frontend:
|
||||||
@@ -131,19 +135,8 @@ jobs:
|
|||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: '21'
|
java-version: '21'
|
||||||
|
|
||||||
- name: Setup Gradle cache
|
- name: Setup Gradle
|
||||||
uses: actions/cache@v4
|
uses: gradle/actions/setup-gradle@v3
|
||||||
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: Build application
|
- name: Build application
|
||||||
run: ./gradlew build -x test
|
run: ./gradlew build -x test
|
||||||
@@ -155,6 +148,8 @@ jobs:
|
|||||||
run: ./gradlew test
|
run: ./gradlew test
|
||||||
env:
|
env:
|
||||||
SPRING_PROFILES_ACTIVE: testcontainers
|
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
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|||||||
@@ -2,4 +2,4 @@
|
|||||||
|
|
||||||
## Pipeline Triggering
|
## Pipeline Triggering
|
||||||
|
|
||||||
Trigger count: 12
|
Trigger count: 14
|
||||||
|
|||||||
Reference in New Issue
Block a user