Skip to content

Commit e545fc7

Browse files
committed
chore: Clean disk space before running an emulator
1 parent 89353f8 commit e545fc7

3 files changed

Lines changed: 39 additions & 5 deletions

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: "Prepare Disk space"
2+
runs:
3+
using: "composite"
4+
steps:
5+
- name: "Delete unnecessary tools"
6+
if: ${{ env.ACTION_PREPARE_DISK_SPACE_COMPLETE != '1' }}
7+
uses: jlumbroso/free-disk-space@v1.3.1
8+
with:
9+
tool-cache: false
10+
android: false
11+
dotnet: true
12+
haskell: true
13+
large-packages: false
14+
docker-images: false
15+
swap-storage: false
16+
- name: "Skip next"
17+
shell: bash
18+
run: |
19+
echo "ACTION_PREPARE_DISK_SPACE_COMPLETE=1" >> $GITHUB_ENV

.github/workflows/check_tests.yaml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,27 +16,41 @@ on:
1616
- master
1717

1818
jobs:
19+
check-desktop-tests:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v6
23+
- uses: ./.github/actions/setup_gradle
24+
with:
25+
cache-write-only: ${{ inputs.cache-write-only || false }}
26+
- name: "Run unit tests"
27+
run: ./gradlew :common:desktopTest
1928
check-android-tests:
2029
runs-on: ubuntu-latest
30+
strategy:
31+
fail-fast: true
32+
matrix:
33+
api-level:
34+
- 30
35+
- 26
2136
steps:
2237
- uses: actions/checkout@v6
2338
- uses: ./.github/actions/setup_gradle
2439
with:
2540
cache-write-only: ${{ inputs.cache-write-only || false }}
2641
- uses: ./.github/actions/prepare_kvm
42+
- uses: ./.github/actions/prepare_disk_space
2743
- name: "Prepare env"
2844
run: |
2945
echo ${{ vars.GOOGLE_SERVICES }} | base64 -d | zcat >> androidApp/google-services.json
3046
- uses: ./.github/actions/build_android_licenses
3147
with:
3248
build-flavor: "PlayStore"
33-
- name: "Run unit tests"
34-
run: ./gradlew :common:desktopTest
3549
- name: "Run integration tests"
3650
id: baseline-profiles
3751
uses: reactivecircus/android-emulator-runner@v2
3852
with:
39-
api-level: 30
53+
api-level: ${{ matrix.api-level }}
4054
arch: x86_64
4155
disable-animations: true
4256
disk-size: 4G
@@ -50,15 +64,15 @@ jobs:
5064
uses: actions/upload-artifact@v6
5165
if: always()
5266
with:
53-
name: baselineprofile-screen-recordings
67+
name: android-${{ matrix.api-level }}-screen-recordings
5468
path: |
5569
artifactsScreenRecording/
5670
retention-days: 7
5771
- name: 'Upload logs'
5872
uses: actions/upload-artifact@v6
5973
if: always()
6074
with:
61-
name: baselineprofile-logs
75+
name: android-${{ matrix.api-level }}-logs
6276
path: |
6377
androidApp/outputs/androidTest-results/
6478
retention-days: 7

.github/workflows/new_daily_tag_play_store_internal_track.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v6
1313
- uses: ./.github/actions/setup_gradle
14+
- uses: ./.github/actions/prepare_disk_space
1415
- name: "Prepare env"
1516
run: |
1617
echo ${{ secrets.KEYSTORE_B64 }} | base64 -d | zcat >> androidApp/keyguard-release.keystore

0 commit comments

Comments
 (0)