-
Notifications
You must be signed in to change notification settings - Fork 5
37 lines (29 loc) · 1.41 KB
/
generate-mistica-tokens.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Generate Mistica Tokens
on:
workflow_dispatch:
jobs:
record-screenshots:
name: Record screenshots
runs-on: self-hosted-novum-mac
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Enable screenshots recording
run: |
find Tests/MisticaCommonTests -name "*.swift" -exec sed -i '' 's/isRecording = false/isRecording = true/' {} +
find Tests/MisticaSwiftUITests -name "*.swift" -exec sed -i '' 's/isRecording = false/isRecording = true/' {} +
find Tests/MisticaTests -name "*.swift" -exec sed -i '' 's/isRecording = false/isRecording = true/' {} +
- name: Launch tests and record screenshots
run: make test
continue-on-error: true
- name: Disable screenshots recording
run: |
find Tests/MisticaCommonTests -name "*.swift" -exec sed -i '' 's/isRecording = false/isRecording = true/' {} +
find Tests/MisticaSwiftUITests -name "*.swift" -exec sed -i '' 's/isRecording = true/isRecording = false/' {} +
find Tests/MisticaTests -name "*.swift" -exec sed -i '' 's/isRecording = true/isRecording = false/' {} +
- name: Commit Changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Record screenshots automatically launched from GH action
env:
GITHUB_TOKEN: ${{ secrets.NOVUM_PRIVATE_REPOS }}