-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e2172e4
commit edce43b
Showing
2 changed files
with
75 additions
and
11 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 |
---|---|---|
|
@@ -7,6 +7,12 @@ on: | |
# - '!main' TODO: commented until `develop` branch is in place | ||
|
||
workflow_dispatch: | ||
inputs: | ||
snapshots: | ||
description: 'Should Snapshots be recorded on CI?' | ||
type: boolean | ||
required: false | ||
default: false | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
|
@@ -23,7 +29,7 @@ jobs: | |
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_PR_NUM: ${{ github.event.number }} | ||
if: ${{ github.event_name != 'push' }} | ||
if: ${{ github.event_name != 'push' }} && github.event.inputs.snapshots != 'true' | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: ./.github/actions/bootstrap | ||
|
@@ -69,10 +75,10 @@ jobs: | |
- uses: ./.github/actions/bootstrap | ||
- uses: ./.github/actions/python-cache | ||
- name: Run UI Tests (Debug) | ||
run: bundle exec fastlane test_ui device:"${{ env.IOS_SIMULATOR_DEVICE }}" skip_build:true | ||
run: bundle exec fastlane test_ui device:"${{ env.IOS_SIMULATOR_DEVICE }}" skip_build:true record:${{ github.event.inputs.snapshots }} | ||
timeout-minutes: 40 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.CI_BOT_GITHUB_TOKEN }} # to open a PR | ||
GITHUB_PR_NUM: ${{ github.event.number }} | ||
- name: Get branch name | ||
id: get_branch_name | ||
|
@@ -110,7 +116,7 @@ jobs: | |
test-e2e-debug: | ||
name: Test E2E UI (Debug) | ||
runs-on: macos-13 | ||
if: ${{ github.event_name != 'push' }} | ||
if: ${{ github.event_name != 'push' }} && github.event.inputs.snapshots != 'true' | ||
needs: | ||
- allure_testops_launch | ||
- build-test-app-and-frameworks | ||
|
@@ -165,7 +171,7 @@ jobs: | |
allure_testops_launch: | ||
name: Launch Allure TestOps | ||
runs-on: macos-13 | ||
if: ${{ github.event_name != 'push' }} | ||
if: ${{ github.event_name != 'push' }} && github.event.inputs.snapshots != 'true' | ||
outputs: | ||
launch_id: ${{ steps.get_launch_id.outputs.launch_id }} | ||
steps: | ||
|
@@ -185,7 +191,7 @@ jobs: | |
name: Build Demo App | ||
runs-on: macos-13 | ||
needs: build-test-app-and-frameworks | ||
if: ${{ github.event_name != 'push' }} | ||
if: ${{ github.event_name != 'push' }} && github.event.inputs.snapshots != 'true' | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/download-artifact@v3 | ||
|
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