Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

split sdk and sample tests #29

Merged
merged 6 commits into from
Oct 19, 2023
Merged
Show file tree
Hide file tree
Changes from 3 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
29 changes: 29 additions & 0 deletions .github/workflows/test-samples.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Run Sample App Tests

on:
push:
branches:
- main
pull_request:
workflow_dispatch:

jobs:
test:
runs-on: macOS-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Setup iOS Simulator
run: |
xcode-select -p
xcrun xcodebuild -version
xcrun simctl list runtimes
xcrun simctl list devicetypes
xcrun simctl delete all
CURRENT_SIMULATOR_UUID=$(xcrun simctl create TestDevice "iPhone 14")
echo "CURRENT_SIMULATOR_UUID=$CURRENT_SIMULATOR_UUID" >> $GITHUB_ENV

- name: Run Tests
run: ./Scripts/test_samples
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Run Tests
name: Run SDK Tests

on:
push:
Expand All @@ -25,8 +25,6 @@ jobs:
CURRENT_SIMULATOR_UUID=$(xcrun simctl create TestDevice "iPhone 14")
echo "CURRENT_SIMULATOR_UUID=$CURRENT_SIMULATOR_UUID" >> $GITHUB_ENV

- name: Run Package Tests
- name: Run Tests
run: ./Scripts/test_package

- name: Run Samples Tests
run: ./Scripts/test_samples
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Mobile Checkout SDK - iOS

[![GitHub license](https://img.shields.io/badge/license-MIT-lightgrey.svg?style=flat)](https://github.com/Shopify/mobile-buy-sdk-ios/blob/main/LICENSE) [![Swift Package Manager compatible](https://img.shields.io/badge/Swift%20Package%20Manager-compatible-2ebb4e.svg?style=flat)](https://swift.org/package-manager/) ![Tests](https://github.com/shopify/mobile-checkout-sdk-ios/actions/workflows/test.yml/badge.svg?branch=main)
[![GitHub license](https://img.shields.io/badge/license-MIT-lightgrey.svg?style=flat)](https://github.com/Shopify/mobile-buy-sdk-ios/blob/main/LICENSE) [![Swift Package Manager compatible](https://img.shields.io/badge/Swift%20Package%20Manager-compatible-2ebb4e.svg?style=flat)](https://swift.org/package-manager/) ![Tests](https://github.com/shopify/mobile-checkout-sdk-ios/actions/workflows/test-sdk.yml/badge.svg?branch=main)

![image](https://github.com/Shopify/mobile-checkout-sdk-ios/assets/10652/1a06e4ff-bc78-4409-91e6-c0d8fccf5959)

Expand Down