-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Added Step to cleanup disk space
- Loading branch information
Showing
2 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,10 @@ on: | |
required: false | ||
type: boolean | ||
default: false | ||
enableCleanUp: | ||
required: false | ||
type: boolean | ||
default: false | ||
disableCoverageUpload: | ||
required: false | ||
type: boolean | ||
|
@@ -64,6 +68,24 @@ jobs: | |
dotnet-version: ${{ inputs.dotnet-version }} | ||
dotnet-quality: ${{ inputs.dotnet-quality }} | ||
|
||
# Our modules occupy too much disk space. The GitHub-hosted runners ran into the | ||
# error: "no space left on device." The pulled images are not cleaned up between | ||
# the test runs. One obvious approach is splitting the tests and running them on | ||
# multiple runners. However, we need to keep in mind that running too many | ||
# simultaneous builds has an impact on others as well. We observed that scheduled | ||
# Dependabot builds blocked others in the Testcontainers organization. | ||
- name: Free Disk Space | ||
uses: jlumbroso/[email protected] | ||
if: ${{ inputs.enableCleanUp == true && runner.os == 'Linux' }} | ||
with: | ||
tool-cache: true | ||
android: true | ||
dotnet: true | ||
haskell: true | ||
large-packages: true | ||
docker-images: true | ||
swap-storage: false | ||
|
||
- name: Setup JDK 17 | ||
if: ${{ inputs.enableSonarQube == true }} | ||
uses: actions/setup-java@v4 | ||
|
@@ -96,7 +118,6 @@ jobs: | |
run: | | ||
dotnet test ${{ inputs.solution }} -c Release -v ${{ inputs.dotnet-logging }} --no-build --no-restore --collect:"XPlat Code Coverage" /p:GeneratePackageOnBuild=false -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover | ||
- name: Stop SonarQube Analysis | ||
if: ${{ inputs.enableSonarQube == true && (success() || steps.test.conclusion == 'failure') }} | ||
id: sonar | ||
|