Skip to content

Commit 67fe89c

Browse files
Record snapshots on CI (#392)
1 parent 74777c1 commit 67fe89c

File tree

41 files changed

+78
-13
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+78
-13
lines changed

β€Ž.github/workflows/smoke-checks.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ on:
77
# - '!main' TODO: commented until `develop` branch is in place
88

99
workflow_dispatch:
10+
inputs:
11+
snapshots:
12+
description: 'Should Snapshots be recorded on CI?'
13+
type: boolean
14+
required: false
15+
default: false
1016

1117
concurrency:
1218
group: ${{ github.workflow }}-${{ github.ref }}
@@ -23,7 +29,7 @@ jobs:
2329
env:
2430
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2531
GITHUB_PR_NUM: ${{ github.event.number }}
26-
if: ${{ github.event_name != 'push' }}
32+
if: ${{ github.event_name != 'push' && github.event.inputs.snapshots != 'true' }}
2733
steps:
2834
- uses: actions/[email protected]
2935
- uses: ./.github/actions/bootstrap
@@ -69,15 +75,16 @@ jobs:
6975
- uses: ./.github/actions/bootstrap
7076
- uses: ./.github/actions/python-cache
7177
- name: Run UI Tests (Debug)
72-
run: bundle exec fastlane test_ui device:"${{ env.IOS_SIMULATOR_DEVICE }}" skip_build:true
73-
timeout-minutes: 40
78+
run: bundle exec fastlane test_ui device:"${{ env.IOS_SIMULATOR_DEVICE }}" skip_build:true record:${{ github.event.inputs.snapshots }}
79+
timeout-minutes: 60
7480
env:
75-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
81+
GITHUB_TOKEN: ${{ secrets.CI_BOT_GITHUB_TOKEN }} # to open a PR
7682
GITHUB_PR_NUM: ${{ github.event.number }}
7783
- name: Get branch name
7884
id: get_branch_name
7985
run: echo "branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT
8086
- name: Run Sonar analysis
87+
if: ${{ github.event.inputs.snapshots != 'true' }}
8188
run: bundle exec fastlane sonar_upload
8289
env:
8390
BRANCH_NAME: ${{ steps.get_branch_name.outputs.branch }}
@@ -110,7 +117,7 @@ jobs:
110117
test-e2e-debug:
111118
name: Test E2E UI (Debug)
112119
runs-on: macos-13
113-
if: ${{ github.event_name != 'push' }}
120+
if: ${{ github.event_name != 'push' && github.event.inputs.snapshots != 'true' }}
114121
needs:
115122
- allure_testops_launch
116123
- build-test-app-and-frameworks
@@ -165,7 +172,7 @@ jobs:
165172
allure_testops_launch:
166173
name: Launch Allure TestOps
167174
runs-on: macos-13
168-
if: ${{ github.event_name != 'push' }}
175+
if: ${{ github.event_name != 'push' && github.event.inputs.snapshots != 'true' }}
169176
outputs:
170177
launch_id: ${{ steps.get_launch_id.outputs.launch_id }}
171178
steps:
@@ -185,7 +192,7 @@ jobs:
185192
name: Build Demo App
186193
runs-on: macos-13
187194
needs: build-test-app-and-frameworks
188-
if: ${{ github.event_name != 'push' }}
195+
if: ${{ github.event_name != 'push' && github.event.inputs.snapshots != 'true' }}
189196
steps:
190197
- uses: actions/[email protected]
191198
- uses: actions/download-artifact@v3

0 commit comments

Comments
Β (0)