Updated snapshots #21
Workflow file for this run
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
name: 🤳 Generate Snapshots | |
on: | |
workflow_dispatch: | |
push: # Remove the push part again | |
branches: | |
- '**' | |
# TODO: Add a way to specify which device/os the snapshots should target | |
jobs: | |
Generate: | |
runs-on: macos-13-xlarge | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: n1hility/cancel-previous-runs@v3 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Select latest Xcode | |
uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: '15.1' | |
- name: Clear existing Snapshots | |
run: | | |
find ./UITests -name "__Snapshots__" -exec rm -rf {} + | |
- name: Generate Snapshots | |
run: | | |
xcodebuild test -project "${project}" -scheme "${scheme}" ${params} -destination "name=iPhone 15 Pro,OS=17.2" | xcpretty --utf --color | |
# xcodebuild test -project "${project}" -scheme "${scheme}" ${params} -destination "name=iPad Pro (12.9-inch) (6th generation),OS=17.2" | xcpretty --utf --color | |
env: | |
project: 'Adyen.xcodeproj' | |
params: '-skipPackagePluginValidation' | |
scheme: 'GenerateSnapshots' | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
delete-branch: true | |
branch: update-snapshots-github-action | |
commit-message: "🤖 Generated Snapshots" | |
title: "🤖 Generate Snapshots" | |
body: "Regenerate snapshots" | |
token: ${{ secrets.GITHUB_TOKEN }} |