Skip to content

Commit fe4c512

Browse files
authored
Merge pull request #8963 from gsmet/disk-space
Reclaim disk space on CI before running the tests
2 parents ed1a65a + b0cc840 commit fe4c512

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/ci-prerequisites.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Reclaim disk space, otherwise we only have 13 GB free at the start of a job
2+
3+
docker rmi node:10 node:12 mcr.microsoft.com/azure-pipelines/node8-typescript:latest
4+
# That is 18 GB
5+
sudo rm -rf /usr/share/dotnet
6+
# That is 1.2 GB
7+
sudo rm -rf /usr/share/swift

.github/workflows/ci-actions.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ jobs:
6060
- uses: n1hility/cancel-previous-runs@v2
6161
with:
6262
token: ${{ secrets.GITHUB_TOKEN }}
63+
- name: Reclaim Disk Space
64+
run: .github/ci-prerequisites.sh
6365
- name: Set up JDK 11
6466
# Uses sha for added security since tags can be updated
6567
uses: joschi/setup-jdk@b9cc6eabf7e7e3889766b5cee486f874c9e1bd2d
@@ -178,6 +180,9 @@ jobs:
178180
shell: bash
179181
run: sudo apt-get clean
180182

183+
- name: Reclaim Disk Space
184+
run: .github/ci-prerequisites.sh
185+
181186
- name: Set up JDK ${{ matrix.java.name }}
182187
# Uses sha for added security since tags can be updated
183188
uses: joschi/setup-jdk@b9cc6eabf7e7e3889766b5cee486f874c9e1bd2d
@@ -280,6 +285,8 @@ jobs:
280285
sudo service mysql stop || true
281286
docker run --rm --publish 3306:3306 --name build-mysql -e MYSQL_USER=$DB_USER -e MYSQL_PASSWORD=$DB_PASSWORD -e MYSQL_DATABASE=$DB_NAME -e MYSQL_RANDOM_ROOT_PASSWORD=true -e MYSQL_DATABASE=hibernate_orm_test -d mysql:5 --skip-ssl
282287
- uses: actions/checkout@v2
288+
- name: Reclaim Disk Space
289+
run: .github/ci-prerequisites.sh
283290
- name: Set up JDK 11
284291
# Uses sha for added security since tags can be updated
285292
uses: joschi/setup-jdk@b9cc6eabf7e7e3889766b5cee486f874c9e1bd2d
@@ -506,6 +513,8 @@ jobs:
506513
uses: joschi/setup-jdk@b9cc6eabf7e7e3889766b5cee486f874c9e1bd2d
507514
with:
508515
java-version: 11
516+
- name: Reclaim Disk Space
517+
run: .github/ci-prerequisites.sh
509518
- name: Download Maven Repo
510519
uses: actions/download-artifact@v1
511520
with:

0 commit comments

Comments
 (0)