Skip to content

Commit

Permalink
split yml
Browse files Browse the repository at this point in the history
  • Loading branch information
RyosukeCla committed Nov 14, 2023
1 parent dec0cc1 commit 3ff4125
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 17 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Test Nativebrik iOS
on:
push:
branches: [ main ]

jobs:
e2e:
runs-on: macos-13
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.0'
- name: Checkout
uses: actions/checkout@v3
- name: Build Nativebrik E2E
run: xcodebuild -workspace ./ios/nativebrik.xcworkspace -scheme E2E -configuration Release -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 15,OS=17.0.1' -derivedDataPath ./.dist
- name: Zip app
run: |
cd .dist/Build/Products/Release-iphonesimulator/ && zip -r E2E.app.zip ./E2E.app
- name: Uploade to magicpod
run: |
curl -L -X POST -F "[email protected]/Build/Products/Release-iphonesimulator/E2E.app.zip" -H "Authorization: Token ${{ secrets.MAGICPOD_API_TOKEN }}" "https://app.magicpod.com/api/v1.0/Nativebrik.inc/Nativebrik/upload-file/"
17 changes: 0 additions & 17 deletions .github/workflows/test-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,6 @@ on:
branches: [ main ]

jobs:
e2e:
runs-on: macos-13
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.0'
- name: Checkout
uses: actions/checkout@v3
- name: Build Nativebrik E2E
run: xcodebuild -workspace ./ios/nativebrik.xcworkspace -scheme E2E -configuration Release -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 15,OS=17.0.1' -derivedDataPath ./.dist
- name: Zip app
run: |
cd .dist/Build/Products/Release-iphonesimulator/ && zip -r E2E.app.zip ./E2E.app
- name: Uploade to magicpod
run: |
curl -L -X POST -F "[email protected]/Build/Products/Release-iphonesimulator/E2E.app.zip" -H "Authorization: Token ${{ secrets.MAGICPOD_API_TOKEN }}" "https://app.magicpod.com/api/v1.0/Nativebrik.inc/Nativebrik/upload-file/"
test:
runs-on: macos-13
strategy:
Expand Down

0 comments on commit 3ff4125

Please sign in to comment.