From bb1c5171b9ed49872c9d1c28d033a42f9f1314c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jose=20Alc=C3=A9rreca?= Date: Tue, 3 Dec 2024 16:36:39 +0100 Subject: [PATCH 1/3] Create test-all.yml workflow --- .github/workflows/test-all.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/test-all.yml diff --git a/.github/workflows/test-all.yml b/.github/workflows/test-all.yml new file mode 100644 index 00000000..bfccb660 --- /dev/null +++ b/.github/workflows/test-all.yml @@ -0,0 +1,23 @@ +# Workflow name +name: Build + Test all +on: + # When it will be triggered + # And in which branch + pull_request: + branches: [ main ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set Up JDK + uses: actions/setup-java@v3 + with: + distribution: 'zulu' # See 'Supported distributions' for available options + java-version: '17' + cache: 'gradle' + + - name: Build project and run local and device tests + run: ./test_all.sh From 57123711309abaca2f08bca1520bf9453e944ec7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jose=20Alc=C3=A9rreca?= Date: Tue, 3 Dec 2024 16:46:51 +0100 Subject: [PATCH 2/3] Update test-all.yml to accept licenses --- .github/workflows/test-all.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-all.yml b/.github/workflows/test-all.yml index bfccb660..5d7e86b9 100644 --- a/.github/workflows/test-all.yml +++ b/.github/workflows/test-all.yml @@ -18,6 +18,9 @@ jobs: distribution: 'zulu' # See 'Supported distributions' for available options java-version: '17' cache: 'gradle' - + + - name: Setup Android SDK + uses: android-actions/setup-android@v3 + - name: Build project and run local and device tests run: ./test_all.sh From 46831ccce5f434cbbe24d849e1288a2a27f0f649 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jose=20Alc=C3=A9rreca?= Date: Tue, 3 Dec 2024 16:53:22 +0100 Subject: [PATCH 3/3] Enables KVM and more tweaks to CI --- .github/workflows/test-all.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-all.yml b/.github/workflows/test-all.yml index 5d7e86b9..2c0b5d62 100644 --- a/.github/workflows/test-all.yml +++ b/.github/workflows/test-all.yml @@ -11,6 +11,13 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + + - name: Enable KVM group perms + run: | + echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules + sudo udevadm control --reload-rules + sudo udevadm trigger --name-match=kvm + ls /dev/kvm - name: Set Up JDK uses: actions/setup-java@v3 @@ -18,9 +25,19 @@ jobs: distribution: 'zulu' # See 'Supported distributions' for available options java-version: '17' cache: 'gradle' - + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v4 + - name: Setup Android SDK uses: android-actions/setup-android@v3 - name: Build project and run local and device tests run: ./test_all.sh + + - name: Upload test reports + if: always() + uses: actions/upload-artifact@v4 + with: + name: test-reports + path: '**/app/build/reports/androidTests'