Skip to content

Commit

Permalink
split sdk and sample tests (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
kiftio authored Oct 19, 2023
1 parent e3d8e5b commit ae92acb
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 13 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/test-samples.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Run Sample App Tests

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

jobs:
call-workflow-passing-data:
uses: ./.github/workflows/test-workflow.yml
with:
test-path: ./Scripts/test_samples
14 changes: 14 additions & 0 deletions .github/workflows/test-sdk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Run SDK Tests

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

jobs:
call-workflow-passing-data:
uses: ./.github/workflows/test-workflow.yml
with:
test-path: ./Scripts/test_package
19 changes: 7 additions & 12 deletions .github/workflows/test.yml → .github/workflows/test-workflow.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: Run Tests

on:
push:
branches:
- main
pull_request:
workflow_dispatch:
workflow_call:
inputs:
test-path:
required: true
type: string

jobs:
test:
Expand All @@ -25,8 +23,5 @@ jobs:
CURRENT_SIMULATOR_UUID=$(xcrun simctl create TestDevice "iPhone 14")
echo "CURRENT_SIMULATOR_UUID=$CURRENT_SIMULATOR_UUID" >> $GITHUB_ENV
- name: Run Package Tests
run: ./Scripts/test_package

- name: Run Samples Tests
run: ./Scripts/test_samples
- name: Run Tests
run: ${{ inputs.config-path }}
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

0 comments on commit ae92acb

Please sign in to comment.