|
@@ -1,12 +1,17 @@
|
|
-name: "Blue color on dark mode"
|
|
|
|
|
|
+name: "Screenshot Test"
|
|
|
|
|
|
on:
|
|
on:
|
|
pull_request:
|
|
pull_request:
|
|
branches: [ master, stable-* ]
|
|
branches: [ master, stable-* ]
|
|
|
|
|
|
jobs:
|
|
jobs:
|
|
- blueDark:
|
|
|
|
|
|
+ screenshot:
|
|
runs-on: macOS-latest
|
|
runs-on: macOS-latest
|
|
|
|
+ strategy:
|
|
|
|
+ fail-fast: false
|
|
|
|
+ matrix:
|
|
|
|
+ scheme: [ Dark, Light ]
|
|
|
|
+ color: [ blue, white ]
|
|
steps:
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/checkout@v2
|
|
- name: set up JDK 1.8
|
|
- name: set up JDK 1.8
|
|
@@ -22,13 +27,13 @@ jobs:
|
|
env:
|
|
env:
|
|
GIT_USERNAME: ${{ secrets.GIT_USERNAME }}
|
|
GIT_USERNAME: ${{ secrets.GIT_USERNAME }}
|
|
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
|
|
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
|
|
- run: scripts/deleteOldComments.sh "Blue-Dark" "Screenshot" ${{github.event.number}} "$GIT_USERNAME" "$GIT_TOKEN"
|
|
|
|
|
|
+ run: scripts/deleteOldComments.sh "${{ matrix.color }}-${{ matrix.scheme }}" "Screenshot" ${{github.event.number}} "$GIT_USERNAME" "$GIT_TOKEN"
|
|
- name: run tests
|
|
- name: run tests
|
|
uses: reactivecircus/android-emulator-runner@v2
|
|
uses: reactivecircus/android-emulator-runner@v2
|
|
with:
|
|
with:
|
|
api-level: 27
|
|
api-level: 27
|
|
emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -skin 500x833
|
|
emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -skin 500x833
|
|
- script: ./gradlew gplayDebugExecuteScreenshotTests -Pandroid.testInstrumentationRunnerArguments.annotation=com.owncloud.android.utils.ScreenshotTest -Pandroid.testInstrumentationRunnerArguments.COLOR=blue -Pandroid.testInstrumentationRunnerArguments.DARKMODE=dark
|
|
|
|
|
|
+ script: ./gradlew gplayDebugExecuteScreenshotTests -Pandroid.testInstrumentationRunnerArguments.annotation=com.owncloud.android.utils.ScreenshotTest -Pandroid.testInstrumentationRunnerArguments.COLOR=${{ matrix.color }} -Pandroid.testInstrumentationRunnerArguments.DARKMODE=${{ matrix.scheme }}
|
|
- name: upload failing results
|
|
- name: upload failing results
|
|
if: ${{ failure() }}
|
|
if: ${{ failure() }}
|
|
env:
|
|
env:
|
|
@@ -37,4 +42,4 @@ jobs:
|
|
GIT_USERNAME: ${{ secrets.GIT_USERNAME }}
|
|
GIT_USERNAME: ${{ secrets.GIT_USERNAME }}
|
|
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
|
|
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
|
|
run:
|
|
run:
|
|
- scripts/uploadReport.sh "$LOG_USERNAME" "$LOG_PASSWORD" ${{github.event.number}} "Blue-Dark" "Screenshot" ${{github.event.number}} "$GIT_USERNAME" "$GIT_TOKEN"
|
|
|
|
|
|
+ scripts/uploadReport.sh "$LOG_USERNAME" "$LOG_PASSWORD" ${{github.event.number}} "${{ matrix.color }}-${{ matrix.scheme }}" "Screenshot" ${{github.event.number}} "$GIT_USERNAME" "$GIT_TOKEN"
|