Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Commit

Permalink
test: add iOS GitHub workflow
Browse files Browse the repository at this point in the history
- remove logs from Android build workflow
  • Loading branch information
wswebcreation committed Sep 12, 2021
1 parent 4fa5feb commit 6408523
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 13 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: iOS SauceLabs Mobile Sample App

on:
push:
branches:
- main
paths-ignore:
- 'android/**'
- '__tests__/**'
- 'docs/**'
- '**.md'
- '**/android.yml'
defaults:
run:
working-directory: ios
jobs:
SimulatorRelease:
runs-on: macos-latest
strategy:
matrix:
node-version: [16.x]
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: |
yarn install
yarn ios.pods
- name: Build iOS Sim Build
run: yarn ios.release.sim.build
- name: Archive App
uses: actions/upload-artifact@v2
with:
name: iOS SauceLabs My Demo App RN Sim Build
path: '**/Build/Products/Release-iphonesimulator/MyRNDemoApp.app'
3 changes: 2 additions & 1 deletion __tests__/e2e/configs/wdio.ios.local.sim.conf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ config.capabilities = [
'appium:automationName': 'XCUITest',
// The path to the app
'appium:app': join(
process.cwd(),
__dirname,
'../../../',
'./ios/Build/Products/Debug-iphonesimulator/MyRNDemoApp.app',
),
// Read the reset strategies very well, they differ per platform, see
Expand Down
11 changes: 0 additions & 11 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -184,19 +184,8 @@ android {
}
}
// Added to change the output name
// applicationVariants.debug { output ->
// output.outputFileName = "${appName}.${variant.versionName}.apk"
// }
//
// applicationVariants.release { variant ->
// output.outputFileName = "${appName}.${variant.versionName}.build-${variant.versionCode}.apk"
// }

applicationVariants.all { variant ->
variant.outputs.each { output ->
println '========================='
println variant.name
println '========================='
if (variant.name == 'debug'){
output.outputFileName = "${appName}.${variant.versionName}.apk"
} else {
Expand Down
2 changes: 1 addition & 1 deletion ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ SPEC CHECKSUMS:
CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99
DoubleConversion: cf9b38bf0b2d048436d9a82ad2abe1404f11e7de
FBLazyVector: 7b423f9e248eae65987838148c36eec1dbfe0b53
FBReactNativeSpec: a12b1ec42c19e0c2e2cdf90f9a0a74d3718f42a8
FBReactNativeSpec: 6d4cb06a4d1cde8a6d30ca78d2e91e959efaa61d
Flipper: d3da1aa199aad94455ae725e9f3aa43f3ec17021
Flipper-DoubleConversion: 38631e41ef4f9b12861c67d17cb5518d06badc41
Flipper-Folly: 755929a4f851b2fb2c347d533a23f191b008554c
Expand Down

0 comments on commit 6408523

Please sign in to comment.