diff --git a/.gitea/workflows/pipeline.yaml b/.gitea/workflows/pipeline.yaml index b797d34..a6d03c4 100644 --- a/.gitea/workflows/pipeline.yaml +++ b/.gitea/workflows/pipeline.yaml @@ -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 diff --git a/legalconsenthub-backend/README.md b/legalconsenthub-backend/README.md index a048f2e..81bbb8f 100644 --- a/legalconsenthub-backend/README.md +++ b/legalconsenthub-backend/README.md @@ -2,4 +2,4 @@ ## Pipeline Triggering -Trigger count: 12 +Trigger count: 14