From 218b275a5c1abfa582daf57696702b9e9eb91003 Mon Sep 17 00:00:00 2001 From: olewandowski1 Date: Wed, 8 Nov 2023 10:32:16 +0100 Subject: [PATCH] CQI-10: perms fix / continue on error --- .github/workflows/sonar-analysis.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sonar-analysis.yml b/.github/workflows/sonar-analysis.yml index afe1ca3..da5f664 100644 --- a/.github/workflows/sonar-analysis.yml +++ b/.github/workflows/sonar-analysis.yml @@ -31,14 +31,17 @@ jobs: key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} restore-keys: ${{ runner.os }}-gradle - name: Build with Docker Compose + continue-on-error: true run: | curl -o .env -L https://raw.githubusercontent.com/OpenLMIS/openlmis-ref-distro/master/settings-sample.env - sudo chown -R $(whoami) ./ docker-compose -f docker-compose.builder.yml run builder + sudo chown -R $(whoami) ./ cp ./build/reports/jacoco/test/jacocoTestReport.xml report.xml rm -rf ./build - name: Analyze env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - run: ./gradlew sonarqube --info + run: | + sudo chown -R $(whoami) ./ + ./gradlew sonarqube --info