Skip to content

Commit 5a8f897

Browse files
authored
Merge pull request #246 from AppDevNext/MatrixEmulator
Matrix emulator capability
2 parents d2a984c + 61a67f8 commit 5a8f897

File tree

49 files changed

+7
-5
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+7
-5
lines changed

.github/workflows/Android-CI.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
api: [ 28 ]
2222
tag: [ default ]
2323
abi: [ x86_64 ]
24+
emulatorApi: [ 9 ]
2425
java_version: [ 17 ]
2526
steps:
2627
- name: Checkout
@@ -59,37 +60,38 @@ jobs:
5960
uses: actions/upload-artifact@v4
6061
if: ${{ always() }}
6162
with:
62-
name: MPChart-Espresso-report
63+
name: MPChart-Espresso-report-${{ matrix.api }}-${{ matrix.tag }}-${{ matrix.abi }}-${{ matrix.emulatorApi }}
6364
path: MPChartExample/build/reports/androidTests/connected
6465
if-no-files-found: error
6566
- name: Archive screenshots
6667
if: ${{ always() }}
6768
uses: actions/upload-artifact@v4
6869
with:
69-
name: MPChart-Screenshots
70+
name: MPChart-Screenshots-${{ matrix.api }}-${{ matrix.tag }}-${{ matrix.abi }}-${{ matrix.emulatorApi }}
7071
path: |
7172
MPChartExample/build/outputs/connected_android_test_additional_output/debugAndroidTest/connected
7273
MPChartExample/build/outputs/androidTest-results/connected
7374
- name: Compare screenshots
7475
env:
7576
CLASSIC_TOKEN: ${{ secrets.CLASSIC_TOKEN }}
77+
emulatorApi: ${{ matrix.emulatorApi }}
7678
run: |
7779
ls -ls MPChartExample/build/outputs/connected_android_test_additional_output/debugAndroidTest/connected
78-
cp MPChartExample/build/outputs/connected_android_test_additional_output/debugAndroidTest/connected/emulator-5554\ -\ 9/* screenshotsToCompare
80+
cp MPChartExample/build/outputs/connected_android_test_additional_output/debugAndroidTest/connected/emulator-5554\ -\ ${{ matrix.emulatorApi }}/* screenshotsToCompare${{ matrix.emulatorApi }}
7981
export DISPLAY=:99
8082
sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 &
8183
./screenShotCompare.sh
8284
- name: Archive screenshots diffs
8385
if: ${{ always() }}
8486
uses: actions/upload-artifact@v4
8587
with:
86-
name: MPChart-Screenshots-diffs
88+
name: MPChart-Screenshots-diffs-${{ matrix.api }}-${{ matrix.tag }}-${{ matrix.abi }}-${{ matrix.emulatorApi }}
8789
path: |
8890
screenshotDiffs
8991
- name: Show git status
9092
if: ${{ always() }}
9193
run: |
92-
git add screenshotsToCompare
94+
git add screenshotsToCompare${{ matrix.emulatorApi }}
9395
git status
9496
[ "$(git status -s -uno)" ] && exit 1 || exit 0
9597
Check:
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)