-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] Make snapshot tests great again
- Loading branch information
1 parent
e838cc2
commit 06b0ae3
Showing
8 changed files
with
74 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,7 @@ jobs: | |
key-prefix: gradle-test | ||
- name: Build apks | ||
run: bundle exec fastlane build_e2e_test | ||
timeout-minutes: 30 | ||
- name: Upload apks | ||
uses: actions/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,7 @@ jobs: | |
- batch: 0 | ||
- batch: 1 | ||
env: | ||
ANDROID_API_LEVEL: 35 | ||
ANDROID_API_LEVEL: 34 | ||
steps: | ||
- name: Connect Bot | ||
uses: webfactory/[email protected] | ||
|
@@ -49,6 +49,7 @@ jobs: | |
allure-token: ${{ secrets.ALLURE_TOKEN }} | ||
- name: Run tests | ||
uses: reactivecircus/android-emulator-runner@v2 | ||
timeout-minutes: 45 | ||
with: | ||
api-level: ${{ env.ANDROID_API_LEVEL }} | ||
disable-animations: true | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Snapshot Tests | ||
|
||
on: | ||
# pull_request: # FIXME: https://github.com/pedrovgs/Shot/issues/326 | ||
|
||
workflow_dispatch: | ||
inputs: | ||
record: | ||
description: 'Should Snapshots be recorded on CI?' | ||
type: boolean | ||
required: false | ||
default: false | ||
|
||
jobs: | ||
run_snapshot_tests: | ||
name: Run | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Check out code | ||
uses: actions/[email protected] | ||
- uses: ./.github/actions/setup-java | ||
- uses: ./.github/actions/setup-ruby | ||
- uses: ./.github/actions/gradle-cache | ||
with: | ||
key-prefix: gradle-test | ||
|
||
- name: Snapshot tests | ||
uses: reactivecircus/android-emulator-runner@v2 | ||
timeout-minutes: 60 | ||
with: | ||
api-level: 27 | ||
disable-animations: true | ||
profile: pixel | ||
arch : x86_64 | ||
emulator-options: ${{ vars.EMULATOR_OPTIONS }} | ||
script: bundle exec fastlane run_snapshot_test record:${{ github.event.inputs.record }} | ||
|
||
- name: Upload test results | ||
if: failure() | ||
uses: actions/[email protected] | ||
continue-on-error: true | ||
with: | ||
name: report | ||
path: ./**/build/reports/* | ||
|
||
- name: Create Pull Request | ||
if: ${{ github.event.inputs.record == 'true' }} | ||
uses: peter-evans/create-pull-request@v4 | ||
with: | ||
commit-message: "Update screenshots" | ||
title: "Update screenshots" | ||
delete-branch: true | ||
reviewers: GetStream/android-developers-ui | ||
branch: update-screenshots |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters