Skip to content

Commit

Permalink
Paywalls: reference test snapshots from submodule (#3115)
Browse files Browse the repository at this point in the history
  • Loading branch information
NachoSoto committed Sep 15, 2023
1 parent 56de917 commit 9056c42
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,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 @@ -333,6 +338,7 @@ jobs:
<<: *base-job
steps:
- checkout
- update-submodules
- update-spm-installation-commit
- run:
name: SPM RevenueCatUI Tests
Expand All @@ -359,6 +365,7 @@ jobs:
<<: *base-job
steps:
- checkout
- update-submodules
- update-spm-installation-commit
- run:
name: SPM RevenueCatUI Release Build
Expand Down Expand Up @@ -392,6 +399,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"],
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

0 comments on commit 9056c42

Please sign in to comment.