mirror of
https://github.com/apache/cordova-plugin-statusbar.git
synced 2025-01-19 01:12:49 +08:00
ci: sync workflow with paramedic (#237)
This commit is contained in:
parent
0d35332697
commit
b7b6c66cbe
34
.github/workflows/android.yml
vendored
34
.github/workflows/android.yml
vendored
@ -33,6 +33,7 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
name: Android ${{ matrix.versions.android }} Test
|
name: Android ${{ matrix.versions.android }} Test
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
continue-on-error: true
|
||||||
|
|
||||||
# hoist configurations to top that are expected to be updated
|
# hoist configurations to top that are expected to be updated
|
||||||
env:
|
env:
|
||||||
@ -55,39 +56,28 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
versions:
|
versions:
|
||||||
|
# Test the lowest minimum supported APIs
|
||||||
- android: 5.1
|
- android: 5.1
|
||||||
android-api: 22
|
android-api: 22
|
||||||
|
|
||||||
- android: 6
|
# Test the last 3-4 supported APIs
|
||||||
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
|
|
||||||
|
|
||||||
- android: 10
|
- android: 10
|
||||||
android-api: 29
|
android-api: 29
|
||||||
|
|
||||||
- android: 11
|
- android: 11
|
||||||
android-api: 30
|
android-api: 30
|
||||||
|
|
||||||
|
- android: 12
|
||||||
|
android-api: 31
|
||||||
|
|
||||||
|
- android: 12L
|
||||||
|
android-api: 32
|
||||||
|
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-node@v2
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: ${{ env.node-version }}
|
node-version: ${{ env.node-version }}
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v3
|
||||||
@ -112,7 +102,7 @@ jobs:
|
|||||||
npm ci
|
npm ci
|
||||||
|
|
||||||
- name: Run paramedic install
|
- 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
|
run: npm i -g github:apache/cordova-paramedic
|
||||||
|
|
||||||
- uses: reactivecircus/android-emulator-runner@5de26e4bd23bf523e8a4b7f077df8bfb8e52b50e
|
- uses: reactivecircus/android-emulator-runner@5de26e4bd23bf523e8a4b7f077df8bfb8e52b50e
|
||||||
|
17
.github/workflows/ios.yml
vendored
17
.github/workflows/ios.yml
vendored
@ -33,6 +33,7 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
name: iOS ${{ matrix.versions.ios-version }} Test
|
name: iOS ${{ matrix.versions.ios-version }} Test
|
||||||
runs-on: ${{ matrix.versions.os-version }}
|
runs-on: ${{ matrix.versions.os-version }}
|
||||||
|
continue-on-error: true
|
||||||
|
|
||||||
# hoist configurations to top that are expected to be updated
|
# hoist configurations to top that are expected to be updated
|
||||||
env:
|
env:
|
||||||
@ -49,15 +50,11 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
versions:
|
versions:
|
||||||
- os-version: macos-10.15
|
- os-version: macos-11
|
||||||
ios-version: 12.x
|
|
||||||
xcode-version: 11.x
|
|
||||||
|
|
||||||
- os-version: macos-10.15
|
|
||||||
ios-version: 13.x
|
ios-version: 13.x
|
||||||
xcode-version: 11.x
|
xcode-version: 11.x
|
||||||
|
|
||||||
- os-version: macos-10.15
|
- os-version: macos-11
|
||||||
ios-version: 14.x
|
ios-version: 14.x
|
||||||
xcode-version: 12.x
|
xcode-version: 12.x
|
||||||
|
|
||||||
@ -87,14 +84,8 @@ jobs:
|
|||||||
npm i -g cordova@latest ios-deploy@latest
|
npm i -g cordova@latest ios-deploy@latest
|
||||||
npm ci
|
npm ci
|
||||||
|
|
||||||
- name: Run setup iOS 12.x support
|
|
||||||
if: ${{ matrix.versions.ios-version == '12.x' }}
|
|
||||||
run: |
|
|
||||||
sudo mkdir -p /Library/Developer/CoreSimulator/Profiles/Runtimes
|
|
||||||
sudo ln -s /Applications/Xcode_10.3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS\ 12.4.simruntime
|
|
||||||
|
|
||||||
- name: Run paramedic install
|
- 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
|
run: npm i -g github:apache/cordova-paramedic
|
||||||
|
|
||||||
- name: Run paramedic tests
|
- name: Run paramedic tests
|
||||||
|
Loading…
Reference in New Issue
Block a user