Skip to content

Commit

Permalink
Merge pull request #3 from MEITREX/reactivate-sonar
Browse files Browse the repository at this point in the history
re-enable sonar
  • Loading branch information
PaulBredl authored Apr 6, 2024
2 parents a33f11d + 2a16d65 commit 3ef3632
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
name: Building Docker Image

on:
workflow_run:
workflows:
- Testing CI pipeline
types:
- completed
workflow_dispatch:
# enable when deployment is ready
# workflow_run:
# workflows:
# - Testing CI pipeline
# types:
# - completed

jobs:
docker-build:
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@ jobs:
uses: gradle/wrapper-validation-action@v2
- name: Run chmod to make gradlew executable
run: chmod +x gradlew

- name: Run tests
- name: Cache SonarCloud packages
uses: actions/cache@v4
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Execute tests
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
uses: gradle/gradle-build-action@v3
with:
arguments: cleanTest test
# Configuration for SonarCloud, enable this when SonarCloud is configured
# - name: Execute tests
# env:
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
# uses: gradle/gradle-build-action@v3
# with:
# arguments: cleanTest test jacocoTestReport sonar
arguments: cleanTest test jacocoTestReport sonar



Expand Down

0 comments on commit 3ef3632

Please sign in to comment.