Skip to content

Commit

Permalink
Validate recorded snapshots in Swift workflow (#311)
Browse files Browse the repository at this point in the history
* Add Superfluous Snapshots workflow

* Prevent job from exiting on failure

* Match existing workflows

* Continue on error

* Remove temp file

* Move steps to existing workflow

* Use multiline formatting

Co-authored-by: Christopher Fuller <[email protected]>

* Add temp file

* Revert "Add temp file"

This reverts commit faf6cc9.

---------

Co-authored-by: Christopher Fuller <[email protected]>
  • Loading branch information
tinder-garricnahapetian and tinder-cfuller authored Jan 31, 2024
1 parent af2efdc commit 6e3a810
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,14 @@ jobs:
test-without-building
-scheme "Layout"
-destination "name=$SIMULATOR,OS=latest"
- name: Delete snapshots
run: make delete-snapshots
- name: Record snapshots
run: >
xcodebuild
test-without-building
-scheme "Layout"
-destination "name=$SIMULATOR,OS=latest"
continue-on-error: true
- name: Validate recorded snapshots
run: test -z "$(git status --porcelain)"

0 comments on commit 6e3a810

Please sign in to comment.