diff --git a/.github/workflows/sonar_analysis.yml b/.github/workflows/sonar_analysis.yml index 2d2d56e1..6371ae95 100644 --- a/.github/workflows/sonar_analysis.yml +++ b/.github/workflows/sonar_analysis.yml @@ -5,6 +5,8 @@ on: - master pull_request: types: [opened, synchronize, reopened] +env: + GRADLE_OPTS: org.gradle.jvmargs=-Xmx1g -XX:MaxMetaspaceSize=512m permissions: read-all jobs: build: @@ -35,4 +37,4 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - run: ./gradlew build aggregateScoverage sonar --info org.gradle.jvmargs=-Xmx1g -XX:MaxMetaspaceSize=512m + run: ./gradlew build aggregateScoverage sonar --info