Skip to content

Commit

Permalink
ci(github): Set an environment variable for Docker via the -e option
Browse files Browse the repository at this point in the history
Simplify the command string by setting the environment variable via the
dedicated `-e` option for Docker.

Signed-off-by: Sebastian Schuberth <sebastian@doubleopen.org>
  • Loading branch information
sschuberth committed Apr 25, 2024
1 parent 1852c30 commit c5fcc9b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,9 @@ jobs:
-v /home/runner/.gradle:/home/ort/.gradle \
-v ${{ github.workspace }}:/workspace \
-w /workspace \
-e GRADLE_USER_HOME=/home/ort/.gradle \
${{ env.TEST_IMAGE_TAG }} \
-c "GRADLE_USER_HOME=/home/ort/.gradle ./gradlew --scan -Ptests.include=org.ossreviewtoolkit.plugins.packagemanagers.* funTest jacocoFunTestReport"
-c "./gradlew --scan -Ptests.include=org.ossreviewtoolkit.plugins.packagemanagers.* funTest jacocoFunTestReport"
# Change the ownership of the Gradle user home and the workspace back to the user in the GitHub Actions runner.
sudo chown -R 1001:121 /home/runner/.gradle
Expand Down

0 comments on commit c5fcc9b

Please sign in to comment.