Sanitize user home on GitHub Action job start on Atlas
(cherry picked from commit 4e8eb91562
)
This commit is contained in:
parent
cf6ac4a67e
commit
61bf908a1c
|
@ -0,0 +1,6 @@
|
||||||
|
# Reclaims disk space and sanitizes user home on Atlas infrastructure
|
||||||
|
|
||||||
|
# We use the GitHub cache for the relevant parts of these directories.
|
||||||
|
# Also, we do not want to keep things like ~/.gradle/build-scan-data.
|
||||||
|
rm -rf ~/.gradle/
|
||||||
|
rm -rf ~/.m2/
|
|
@ -98,7 +98,7 @@ jobs:
|
||||||
if: "${{ github.event_name == 'pull_request' && !cancelled() }}"
|
if: "${{ github.event_name == 'pull_request' && !cancelled() }}"
|
||||||
with:
|
with:
|
||||||
name: build-scan-data-${{ matrix.rdbms }}
|
name: build-scan-data-${{ matrix.rdbms }}
|
||||||
path: build-scan-data.tgz
|
path: ~/.gradle/build-scan-data
|
||||||
|
|
||||||
- name: Upload test reports (if Gradle failed)
|
- name: Upload test reports (if Gradle failed)
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
@ -130,8 +130,8 @@ jobs:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Reclaim Disk Space
|
- name: Reclaim disk space and sanitize user home
|
||||||
run: .github/ci-prerequisites.sh
|
run: .github/ci-prerequisites-atlas.sh
|
||||||
- name: Start database
|
- name: Start database
|
||||||
env:
|
env:
|
||||||
RDBMS: ${{ matrix.rdbms }}
|
RDBMS: ${{ matrix.rdbms }}
|
||||||
|
|
Loading…
Reference in New Issue