Skip to content

Commit

Permalink
Run test after recording snapshots (#189)
Browse files Browse the repository at this point in the history
* Set token on check action
* Set name and email
* Fix testTypeDescription
* Fix codecov for PRs

Co-authored-by: pola-ci <[email protected]>
  • Loading branch information
WezSieTato and pola-ci committed Mar 2, 2021
1 parent b52af5e commit 6c9fe0c
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/snapshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 0
token: ${{ secrets.WORKFLOW_ACCESS_TOKEN_GITHUB }}
- name: Cache bundler gems
uses: actions/cache@v2
with:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ jobs:
defaults:
run:
working-directory: BuyPolish

steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Cache bundler gems
uses: actions/cache@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion BuyPolish/PolaUITests/Tests/ReportBugPageUITests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ final class ReportBugPageUITests: PolaUITestCase {
}

func testTypeDescription() {
page.typeDescription("Kawał dobrej aplikacji ;)")
page.typeDescription(";)")
.tapDescriptionLabel()
.done()

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 9 additions & 1 deletion BuyPolish/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ platform :ios do
end

lane :ui_tests do
scan(scheme: "PolaUITests")
try_scan(
scheme: "PolaUITests",
try_count: 3,
try_parallel: false
)
end

lane :record_snapshots do
Expand All @@ -34,6 +38,10 @@ platform :ios do
fail_build: false
)
if is_ci
set_git_config_user(
name: "pola-ci",
email: "[email protected]"
)
git_commit(
message: "Record snapshot :camera:",
path: snapshots_paths
Expand Down
1 change: 1 addition & 0 deletions BuyPolish/fastlane/Pluginfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
gem 'fastlane-plugin-menigit'
gem 'fastlane-plugin-synx'
gem 'fastlane-plugin-swiftformat'
gem 'fastlane-plugin-try_scan'
2 changes: 2 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ GEM
fastlane-plugin-swiftformat (0.1.0)
fastlane-plugin-synx (0.1.4)
synx
fastlane-plugin-try_scan (1.0.1)
ffi (1.14.2)
fourflusher (2.3.1)
fuzzy_match (2.0.4)
Expand Down Expand Up @@ -275,6 +276,7 @@ DEPENDENCIES
fastlane-plugin-menigit
fastlane-plugin-swiftformat
fastlane-plugin-synx
fastlane-plugin-try_scan

BUNDLED WITH
2.1.4

0 comments on commit 6c9fe0c

Please sign in to comment.