Skip to content
Open
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
6 changes: 6 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,9 @@ jobs:
KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }}
MATCH_KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }}
APP_STORE_CERT_NAME: ${{ secrets.APP_STORE_CERT_NAME }}

- name: Publish Scan Report
uses: EnricoMi/publish-unit-test-result-action/composite@v1
if: always()
with:
files: '.scan_result/*.junit'
10 changes: 8 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,11 @@ jobs:
bundler-cache: true

# Runs a single command using the runners shell
- name: Build
run: bundle exec fastlane test
- name: Run tests
run: bundle exec fastlane test

- name: Publish Scan Report
uses: EnricoMi/publish-unit-test-result-action/composite@v1
if: always()
with:
files: '.scan_result/*.junit'
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,8 @@ fastlane/test_output
# https://github.com/johnno1962/injectionforxcode

iOSInjectionProject/

# Locally managed files - May contain sensitive data
.secrets/
.scan_result/
.envrc
9 changes: 3 additions & 6 deletions MyWalletTests/MyWalletTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,9 @@ class MyWalletTests: XCTestCase {
// This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct results.
}

func testPerformanceExample() throws {
// This is an example of a performance test case.
self.measure {
// Put the code you want to measure the time of here.
}

func testExampleFail() throws {
XCTAssertTrue(true)
}

}
17 changes: 6 additions & 11 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,15 @@ default_platform(:ios)
platform :ios do
desc "Description of what the lane does"

project = "MyWallet.xcodeproj"

lane :test do |options|
scheme = options[:scheme]

scan(project: project,
scheme: scheme,
configuration: options[:configuration],
code_coverage: true,
scan(code_coverage: true,
clean: true,
skip_build: options[:skip_build] ||= false,
output_directory: ".scan_result",
reset_simulator: true)
end

lane :build do
# project = "MyWallet.xcodeproj"
keychain_name = "MyWallet"
app_target_bundle_identifier = "gr.marseltzatzo.MyWallet"

Expand Down Expand Up @@ -81,9 +75,10 @@ platform :ios do
}
},
output_directory: output_directory,
output_name: output_name,
xcargs: "OTHER_CODE_SIGN_FLAGS=--keychain=\"/Users/Shared/Library/Keychains/MyWallet-db\"")
output_name: output_name)

test(skip_build: true)

# Upload to app store
pilot(app_platform: 'ios',
ipa: output_file_path,
Expand Down