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