diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2c903a3..51c14c4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,8 +20,17 @@ jobs: run: sh .github/scripts/lint.sh - name: 📋 Build and test - run: sh .github/scripts/run_tests.sh + run: sh .github/scripts/run_tests.sh || echo "Pushing diffs" env: scheme: ${{ matrix.scheme }} destination: ${{ matrix.destination }} DEVELOPER_DIR: ${{ matrix.xcode }} + + - name: 📥 Push + run: | + rm -rf .build/ + git clean -df + git config --global user.name 'tt-ios-bot' + git config --global user.email 'tt-ios-bot@users.noreply.github.com' + git commit -am "Image Diffs" + git push diff --git a/Tests/ThumbprintTests/Snapshot/Shared/SnapshotTestCase.swift b/Tests/ThumbprintTests/Snapshot/Shared/SnapshotTestCase.swift index 1cfeea6..5da4fb3 100644 --- a/Tests/ThumbprintTests/Snapshot/Shared/SnapshotTestCase.swift +++ b/Tests/ThumbprintTests/Snapshot/Shared/SnapshotTestCase.swift @@ -79,7 +79,7 @@ open class SnapshotTestCase: XCTestCase { open override func setUp() { super.setUp() - + self.recordMode = true behavior = TestCaseBehavior() }