diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index 780c0cce..74b6917e 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -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)"