From dc47e95ef1c8b83da95f791e71bc23e4269befde Mon Sep 17 00:00:00 2001 From: Stefan Hahmann Date: Mon, 8 May 2023 12:44:49 +0200 Subject: [PATCH] Configure mvn to run with more heap space to allow running tests. This is necessary, since there is a memory leak in mastodon (https://github.com/mastodon-sc/mastodon/issues/225) --- .github/workflows/build.yml | 2 ++ .github/workflows/sonarcloud.yml | 1 + 2 files changed, 3 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index df590fd94..a4e1436e4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,4 +22,6 @@ jobs: distribution: 'zulu' cache: 'maven' - name: Build with Maven + env: + MAVEN_OPTS: -Xmx4096m run: mvn -B package --file pom.xml diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index 498252aac..1987eb460 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -50,6 +50,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} # Generate a token on Sonarcloud.io, add it to the secrets of this repo with the name SONAR_TOKEN (Settings > Secrets > Actions > add new repository secret) + MAVEN_OPTS: -Xmx4096m run: mvn -B verify --file pom.xml -Pcoverage sonar:sonar -Dsonar.projectKey=mastodon-sc_mastodon-deep-lineage -Dsonar.organization=mastodon-sc - name: Upload artifacts for subsequent review