Add coingeko price provider #734
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Key app kit unit test | |
on: | |
pull_request: | |
paths: | |
- 'Packages/KeyAppKit/Sources/**/*' | |
- 'Packages/KeyAppKit/Tests/**/*' | |
workflow_dispatch: | |
concurrency: | |
group: key-app-kit-unit-test-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
run_key_app_kit_unit_test: | |
name: Run KeyAppKit unit testing | |
runs-on: macos-13 | |
env: | |
XCODE_VERSION: "15.0.0" | |
steps: | |
- name: Cleanup build folder | |
run: | | |
ls -la ./ | |
rm -rf ./* || true | |
rm -rf ./.??* || true | |
ls -la ./ | |
- name: Install xcbeautify | |
run: | | |
brew install xcbeautify | |
- uses: actions/checkout@v3 | |
- name: Select XCode Version | |
run: sudo xcode-select --switch /Applications/Xcode_${{ env.XCODE_VERSION }}.app | |
- name: Run unit tests | |
working-directory: ./Packages/KeyAppKit | |
run: | | |
xcodebuild test \ | |
-scheme KeyAppKit-Package \ | |
-sdk iphonesimulator \ | |
-destination "platform=iOS Simulator,name=iPhone 14,OS=latest" \ | |
-parallel-testing-worker-count 3 \ | |
-parallel-testing-enabled YES \ | |
-resultBundlePath TestResults \ | |
-only-testing:AnalyticsManagerUnitTests \ | |
-only-testing:CountriesAPIUnitTests \ | |
-only-testing:JSBridgeTests \ | |
-only-testing:KeyAppKitCoreTests \ | |
-only-testing:KeyAppNetworkingTests \ | |
-only-testing:KeyAppStateMachineTests \ | |
-only-testing:OnboardingTests \ | |
-only-testing:WormholeTests \ | |
| xcbeautify | |
# - uses: sersoft-gmbh/[email protected] | |
# id: coverage-files | |
- uses: TrGiLong/xcresulttool@fix-tests-is-not-interable | |
with: | |
path: ./Packages/KeyAppKit/TestResults.xcresult | |
if: success() || failure() | |
# with: | |
# search-paths: | | |
# ./Packages/KeyAppKit/.build | |
# - name: Test coverage | |
# uses: maxep/[email protected] | |
# with: | |
# output-file: ./coverage/lcov.info | |
# target-name-filter: '(KeyAppBusiness|Wormhole|Moonpay)' | |
# | |
# - name: Bot comment | |
# uses: romeovs/[email protected] | |
# with: | |
# lcov-file: ${{fromJSON(steps.coverage-files.outputs.files)[0]}} | |
# filter-changed-files: true | |
# - name: Convert to standard format | |
# run: | | |
# xcrun llvm-cov export -format="lcov" .build/debug/KeyAppKitPackageTests.xctest/Contents/MacOS/KeyAppKitPackageTests -instr-profile .build/debug/codecov/default.profdata > info.lcov | |
# - uses: codecov/codecov-action@v3 | |
# with: | |
# token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos | |
# files: ./info.lcov # optional | |
# flags: unittests # optional | |
# name: codecov-umbrella # optional | |
# fail_ci_if_error: true # optional (default = false) | |
# verbose: true # optional (default = false) |