From 54f4b458c284c887a301d434736fcfe76e0551af Mon Sep 17 00:00:00 2001 From: DeluxeAlonso Date: Mon, 13 Nov 2023 01:14:49 -0500 Subject: [PATCH 1/4] Updates Fastfile configuration --- fastlane/Fastfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 88100ce..43edb70 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -11,4 +11,11 @@ platform :ios do ) end + lane :snapshot_tests do + run_tests( + devices: ["iPhone 14 Pro"], + scheme: "CalculatorReplicaSwiftUISnapshotTests" + ) + end + end \ No newline at end of file From 24923946dc73152c2f9e244f7af13e9e052fcf37 Mon Sep 17 00:00:00 2001 From: DeluxeAlonso Date: Mon, 13 Nov 2023 01:27:10 -0500 Subject: [PATCH 2/4] Updates snapshot scheme config --- .github/workflows/testing.yml | 8 +++++ ...ulatorReplicaSwiftUISnapshotTests.xcscheme | 19 +++++++++++ fastlane/README.md | 33 ++++++++++++------- 3 files changed, 49 insertions(+), 11 deletions(-) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index d317f43..56c6503 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -15,3 +15,11 @@ jobs: run: bundle install - name: Run unit tests run: bundle exec fastlane tests + snapshot_test: + runs-on: macos-latest + steps: + - uses: actions/checkout@v2 + - name: Install Bundle + run: bundle install + - name: Run snapshot tests + run: bundle exec fastlane snapshot_tests diff --git a/CalculatorReplicaSwiftUI.xcodeproj/xcshareddata/xcschemes/CalculatorReplicaSwiftUISnapshotTests.xcscheme b/CalculatorReplicaSwiftUI.xcodeproj/xcshareddata/xcschemes/CalculatorReplicaSwiftUISnapshotTests.xcscheme index 0542fb8..8e06c1e 100644 --- a/CalculatorReplicaSwiftUI.xcodeproj/xcshareddata/xcschemes/CalculatorReplicaSwiftUISnapshotTests.xcscheme +++ b/CalculatorReplicaSwiftUI.xcodeproj/xcshareddata/xcschemes/CalculatorReplicaSwiftUISnapshotTests.xcscheme @@ -36,6 +36,16 @@ debugDocumentVersioning = "YES" debugServiceExtension = "internal" allowLocationSimulation = "YES"> + + + + + + + + diff --git a/fastlane/README.md b/fastlane/README.md index afd63a7..be87bdd 100644 --- a/fastlane/README.md +++ b/fastlane/README.md @@ -1,29 +1,40 @@ fastlane documentation -================ +---- + # Installation Make sure you have the latest version of the Xcode command line tools installed: -``` +```sh xcode-select --install ``` -Install _fastlane_ using -``` -[sudo] gem install fastlane -NV -``` -or alternatively using `brew install fastlane` +For _fastlane_ installation instructions, see [Installing _fastlane_](https://docs.fastlane.tools/#installing-fastlane) # Available Actions + ## iOS + ### ios tests + +```sh +[bundle exec] fastlane ios tests ``` -fastlane ios tests + + + +### ios snapshot_tests + +```sh +[bundle exec] fastlane ios snapshot_tests ``` + ---- -This README.md is auto-generated and will be re-generated every time [fastlane](https://fastlane.tools) is run. -More information about fastlane can be found on [fastlane.tools](https://fastlane.tools). -The documentation of fastlane can be found on [docs.fastlane.tools](https://docs.fastlane.tools). +This README.md is auto-generated and will be re-generated every time [_fastlane_](https://fastlane.tools) is run. + +More information about _fastlane_ can be found on [fastlane.tools](https://fastlane.tools). + +The documentation of _fastlane_ can be found on [docs.fastlane.tools](https://docs.fastlane.tools). From 791ccdce5367a7dd5dd7d4defa37a2b02132b8d0 Mon Sep 17 00:00:00 2001 From: DeluxeAlonso Date: Thu, 16 Nov 2023 00:17:18 -0500 Subject: [PATCH 3/4] Updates github actions config --- .github/workflows/testing.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 56c6503..d4f7d29 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -16,7 +16,7 @@ jobs: - name: Run unit tests run: bundle exec fastlane tests snapshot_test: - runs-on: macos-latest + runs-on: macos-13 steps: - uses: actions/checkout@v2 - name: Install Bundle From 2a13a4daee01d1964201da078a95a98d147d8dbb Mon Sep 17 00:00:00 2001 From: DeluxeAlonso Date: Thu, 16 Nov 2023 00:48:36 -0500 Subject: [PATCH 4/4] Updates fastfile config --- fastlane/Fastfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 43edb70..ad2be73 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -13,7 +13,7 @@ platform :ios do lane :snapshot_tests do run_tests( - devices: ["iPhone 14 Pro"], + devices: ["iPhone 14 Pro (16.4)"], scheme: "CalculatorReplicaSwiftUISnapshotTests" ) end