-
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
74777c1
commit b0c7a72
Showing
2 changed files
with
78 additions
and
13 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,15 +75,16 @@ 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 | ||
timeout-minutes: 40 | ||
run: bundle exec fastlane test_ui device:"${{ env.IOS_SIMULATOR_DEVICE }}" skip_build:true record:${{ github.event.inputs.snapshots }} | ||
timeout-minutes: 60 | ||
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 | ||
run: echo "branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT | ||
- name: Run Sonar analysis | ||
if: ${{ github.event.inputs.snapshots != 'true' }} | ||
run: bundle exec fastlane sonar_upload | ||
env: | ||
BRANCH_NAME: ${{ steps.get_branch_name.outputs.branch }} | ||
|
@@ -110,7 +117,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 +172,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 +192,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