Skip to content

Commit

Permalink
Merge pull request #546 from DroidKaigi/add-git-lfs-to-snapshots
Browse files Browse the repository at this point in the history
Add iOS snapshot files to Git LFS
  • Loading branch information
takahirom authored Jul 11, 2021
2 parents 95a710d + 6a34114 commit 22a93e1
Show file tree
Hide file tree
Showing 184 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**/__Snapshots__/**.png filter=lfs diff=lfs merge=lfs -text
12 changes: 11 additions & 1 deletion .github/workflows/ios-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,16 @@ jobs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Create LFS file list
run: git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id
- name: Restore LFS cache
uses: actions/cache@v2
id: lfs-cache
with:
path: .git/lfs
key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }}-v1
- name: Git LFS Pull
run: git lfs pull
- uses: actions/setup-java@v1
with:
java-version: '11'
Expand Down Expand Up @@ -75,7 +85,7 @@ jobs:
run: xcodebuild -version
- uses: eskatos/gradle-command-action@v1
with:
arguments: "ios-framework:createXCFramework"
arguments: "ios-framework:createXCFramework"
dependencies-cache-key: |
**/*.gradle
**/*.gradle.kts
Expand Down
2 changes: 2 additions & 0 deletions ios/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ For example, if you preview `AboutScreen.swift` file, change build scheme to `Ab
### Snapshot Testing

- In this app, we introduce Snapshot Testing. Snapshots are saved in each Test module's `__Snapshots__` directory.
- Snapshots in `__Snapshots__` are stored in Git LFS. So if you want to snapshot test. Please
install Git LFS and `git lfs pull`
- When component or view's appearance are updated, there is no need to update snapshots in PR. CI will automaticaly update snapshots and create PullRequest.

## Requirements
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ios/Tests/ComponentTests/__Snapshots__/TagTests/testTag.1.png
Binary file modified ios/Tests/ComponentTests/__Snapshots__/TagTests/testTag.2.png
Binary file modified ios/Tests/ComponentTests/__Snapshots__/TagTests/testTag.3.png
Binary file modified ios/Tests/ComponentTests/__Snapshots__/TagTests/testTag.4.png
Binary file modified ios/Tests/ComponentTests/__Snapshots__/TagTests/testTag.5.png
Binary file modified ios/Tests/ComponentTests/__Snapshots__/TagTests/testTag.6.png
Binary file modified ios/Tests/ComponentTests/__Snapshots__/TagTests/testTag.7.png
Binary file modified ios/Tests/ComponentTests/__Snapshots__/TagTests/testTag.8.png

0 comments on commit 22a93e1

Please sign in to comment.