This is an automated email from the ASF dual-hosted git repository.

erisu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-paramedic.git


The following commit(s) were added to refs/heads/master by this push:
     new 41ff4c3  ci(android): refactor workflow (#242)
41ff4c3 is described below

commit 41ff4c3c95994b7b745500f6703013bf62729169
Author: エリス <er...@users.noreply.github.com>
AuthorDate: Mon Aug 8 22:49:59 2022 +0900

    ci(android): refactor workflow (#242)
    
    * Test only the last 3-4 and lowest minimum APIs
    * Set default JAVA version to 11
    * Update the JAVA distro to temurin
    * Update action dependencies
    * Set continue-on-error to true
    * Add Android 12 & 12L
---
 .github/workflows/android.yml         | 41 +++++++++++++----------------------
 conf/pr/local/android-12.config.json  |  7 ++++++
 conf/pr/local/android-12L.config.json |  7 ++++++
 3 files changed, 29 insertions(+), 26 deletions(-)

diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml
index 806baeb..1f914ca 100644
--- a/.github/workflows/android.yml
+++ b/.github/workflows/android.yml
@@ -33,6 +33,7 @@ jobs:
   test:
     name: Android ${{ matrix.versions.android }} Test
     runs-on: macos-latest
+    continue-on-error: true
 
     # hoist configurations to top that are expected to be updated
     env:
@@ -43,8 +44,8 @@ jobs:
 
       # These are the default Java configurations used by most tests.
       # To customize these options, add "java-distro" or "java-version" to the 
strategy matrix with its overriding value.
-      default_java-distro: adopt
-      default_java-version: 8
+      default_java-distro: temurin
+      default_java-version: 11
 
       # These are the default Android System Image configurations used by most 
tests.
       # To customize these options, add "system-image-arch" or 
"system-image-target" to the strategy matrix with its overriding value.
@@ -55,43 +56,31 @@ jobs:
     strategy:
       matrix:
         versions:
+          # Test the lowest minimum supported APIs
           - android: 5.1
             android-api: 22
 
-          - android: 6
-            android-api: 23
-
-          - android: 7
-            android-api: 24
-
-          - android: 7.1
-            android-api: 25
-
-          - android: 8
-            android-api: 26
-
-          - android: 8.1
-            android-api: 27
-            system-image-target: default
-
-          - android: 9
-            android-api: 28
-
+          # Test the last 3-4 supported APIs
           - android: 10
             android-api: 29
 
           - android: 11
             android-api: 30
-            java-version: 11
+
+          - android: 12
+            android-api: 31
+
+          - android: 12L
+            android-api: 32
 
     timeout-minutes: 60
 
     steps:
-      - uses: actions/checkout@v2
-      - uses: actions/setup-node@v2
+      - uses: actions/checkout@v3
+      - uses: actions/setup-node@v3
         with:
           node-version: ${{ env.node-version }}
-      - uses: actions/setup-java@v2
+      - uses: actions/setup-java@v3
         env:
           java-version: ${{ matrix.versions.java-version == '' && 
env.default_java-version || matrix.versions.java-version }}
           java-distro: ${{ matrix.versions.java-distro == '' && 
env.default_java-distro || matrix.versions.java-distro }}
@@ -113,7 +102,7 @@ jobs:
           npm ci
 
       - name: Run paramedic install
-        if: ${{ endswith(env.repo, '/cordova-paramedic') != true }}
+        if: ${{ endswith(env.repo, '/cordova-paramedic') != true }}
         run: npm i -g github:apache/cordova-paramedic
 
       - uses: 
reactivecircus/android-emulator-runner@5de26e4bd23bf523e8a4b7f077df8bfb8e52b50e
diff --git a/conf/pr/local/android-12.config.json 
b/conf/pr/local/android-12.config.json
new file mode 100644
index 0000000..c3fecfa
--- /dev/null
+++ b/conf/pr/local/android-12.config.json
@@ -0,0 +1,7 @@
+{
+    "platform": "android@latest",
+    "action": "run",
+    "cleanUpAfterRun": true,
+    "verbose": true,
+    "skipAppiumTests": true
+}
diff --git a/conf/pr/local/android-12L.config.json 
b/conf/pr/local/android-12L.config.json
new file mode 100644
index 0000000..c3fecfa
--- /dev/null
+++ b/conf/pr/local/android-12L.config.json
@@ -0,0 +1,7 @@
+{
+    "platform": "android@latest",
+    "action": "run",
+    "cleanUpAfterRun": true,
+    "verbose": true,
+    "skipAppiumTests": true
+}


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org
For additional commands, e-mail: commits-h...@cordova.apache.org

Reply via email to