Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paywalls: reference test snapshots from submodule #3115

Merged
merged 3 commits into from
Aug 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,11 @@ commands:
paths:
- vendor/bundle

update-submodules:
steps:
- run: git submodule sync
- run: git submodule update --init

compress_result_bundle:
parameters:
directory:
Expand Down Expand Up @@ -341,6 +346,7 @@ jobs:
<<: *base-job
steps:
- checkout
- update-submodules
- update-spm-installation-commit
- run:
name: SPM RevenueCatUI Tests
Expand All @@ -367,6 +373,7 @@ jobs:
<<: *base-job
steps:
- checkout
- update-submodules
- update-spm-installation-commit
- run:
name: SPM RevenueCatUI Release Build
Expand Down Expand Up @@ -400,6 +407,7 @@ jobs:
<<: *base-job
steps:
- checkout
- update-submodules
- update-spm-installation-commit
- run:
name: SPM RevenueCatUI Tests
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "purchases-ios-snapshots"]
path = purchases-ios-snapshots
url = git@github.com:RevenueCat/purchases-ios-snapshots.git
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ let package = Package(
"Nimble",
.product(name: "SnapshotTesting", package: "swift-snapshot-testing")
],
exclude: ["Templates/__Snapshots__"],
exclude: ["Templates/__Snapshots__", "Data/__Snapshots__", "TestPlans"],
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ran swift build and got some warnings, so I realized these were missing from here.

resources: [.copy("Resources/header.jpg"), .copy("Resources/background.jpg")])
]
)
1 change: 1 addition & 0 deletions Tests/RevenueCatUITests/Templates/__Snapshots__
1 change: 1 addition & 0 deletions purchases-ios-snapshots