-
Notifications
You must be signed in to change notification settings - Fork 0
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
8659841
commit 1b19ecb
Showing
2 changed files
with
35 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Superfluous Snapshots | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
env: | ||
DEVELOPER_DIR: /Applications/Xcode_15.0.app/Contents/Developer | ||
SWIFT_STRICT_CONCURRENCY: complete | ||
|
||
jobs: | ||
swift: | ||
name: Superfluous Snapshots | ||
runs-on: macos-13 | ||
env: | ||
SIMULATOR: iPhone 14 | ||
steps: | ||
- name: Checkout source | ||
uses: actions/checkout@v3 | ||
- name: Delete snapshots | ||
run: make delete-snapshots | ||
- name: Record snapshots | ||
run: xcodebuild test -skipPackageUpdates -scheme "Layout" -destination "name=iPhone 14 Pro,OS=latest" | ||
- name: Detect superfluous snapshots | ||
run: | | ||
if [ -z "$(git status --porcelain)" ] | ||
then | ||
echo "No superfluous snapshots detected." | ||
else | ||
echo "Superfluous snapshots detected." | ||
exit 1 | ||
fi |
1 change: 1 addition & 0 deletions
1
Tests/LayoutTests/__Snapshots__/LayoutItemTests/suprious-snapshot.txt
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
suprious-snapshot |