|
21 | 21 | api: [ 28 ] |
22 | 22 | tag: [ default ] |
23 | 23 | abi: [ x86_64 ] |
| 24 | + emulatorApi: [ 9 ] |
24 | 25 | java_version: [ 17 ] |
25 | 26 | steps: |
26 | 27 | - name: Checkout |
@@ -59,37 +60,38 @@ jobs: |
59 | 60 | uses: actions/upload-artifact@v4 |
60 | 61 | if: ${{ always() }} |
61 | 62 | with: |
62 | | - name: MPChart-Espresso-report |
| 63 | + name: MPChart-Espresso-report-${{ matrix.api }}-${{ matrix.tag }}-${{ matrix.abi }}-${{ matrix.emulatorApi }} |
63 | 64 | path: MPChartExample/build/reports/androidTests/connected |
64 | 65 | if-no-files-found: error |
65 | 66 | - name: Archive screenshots |
66 | 67 | if: ${{ always() }} |
67 | 68 | uses: actions/upload-artifact@v4 |
68 | 69 | with: |
69 | | - name: MPChart-Screenshots |
| 70 | + name: MPChart-Screenshots-${{ matrix.api }}-${{ matrix.tag }}-${{ matrix.abi }}-${{ matrix.emulatorApi }} |
70 | 71 | path: | |
71 | 72 | MPChartExample/build/outputs/connected_android_test_additional_output/debugAndroidTest/connected |
72 | 73 | MPChartExample/build/outputs/androidTest-results/connected |
73 | 74 | - name: Compare screenshots |
74 | 75 | env: |
75 | 76 | CLASSIC_TOKEN: ${{ secrets.CLASSIC_TOKEN }} |
| 77 | + emulatorApi: ${{ matrix.emulatorApi }} |
76 | 78 | run: | |
77 | 79 | 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 }} |
79 | 81 | export DISPLAY=:99 |
80 | 82 | sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 & |
81 | 83 | ./screenShotCompare.sh |
82 | 84 | - name: Archive screenshots diffs |
83 | 85 | if: ${{ always() }} |
84 | 86 | uses: actions/upload-artifact@v4 |
85 | 87 | with: |
86 | | - name: MPChart-Screenshots-diffs |
| 88 | + name: MPChart-Screenshots-diffs-${{ matrix.api }}-${{ matrix.tag }}-${{ matrix.abi }}-${{ matrix.emulatorApi }} |
87 | 89 | path: | |
88 | 90 | screenshotDiffs |
89 | 91 | - name: Show git status |
90 | 92 | if: ${{ always() }} |
91 | 93 | run: | |
92 | | - git add screenshotsToCompare |
| 94 | + git add screenshotsToCompare${{ matrix.emulatorApi }} |
93 | 95 | git status |
94 | 96 | [ "$(git status -s -uno)" ] && exit 1 || exit 0 |
95 | 97 | Check: |
|
0 commit comments