-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ea5a609
commit c1855c2
Showing
7 changed files
with
109 additions
and
6 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
name: 'Build Android App' | ||
description: 'Build the Android app' | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Build Android App | ||
shell: bash | ||
working-directory: android | ||
run: ./gradlew assembleRelease |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: 'Build iOS App' | ||
description: 'Build the iOS app' | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Build iOS App | ||
shell: bash | ||
working-directory: ios | ||
run: | | ||
xcodebuild build -scheme 'WeatherApp' \ | ||
-configuration Debug \ | ||
-workspace 'WeatherApp.xcworkspace' \ | ||
-destination 'generic/platform=iOS Simulator' CONFIGURATION_BUILD_DIR=$PWD/build |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: 'Install Android dependencies' | ||
description: 'Install dependencies for the project' | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '11' | ||
distribution: 'adopt' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: 'Install iOS dependencies' | ||
description: 'Install dependencies for the project' | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: '3.0' | ||
bundler-cache: true | ||
|
||
- name: Install Bundler | ||
shell: bash | ||
working-directory: ios | ||
run: bundle install | ||
|
||
- name: Install CocoaPods | ||
shell: bash | ||
run: sudo gem install cocoapods | ||
|
||
- name: Install Pods | ||
shell: bash | ||
working-directory: ios | ||
run: pod install |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: E2E Tests | ||
|
||
on: | ||
push: | ||
branches: ['main'] | ||
pull_request: | ||
branches: ['main'] | ||
|
||
jobs: | ||
ios-e2e-tests: | ||
runs-on: macos-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [20.x] | ||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/install | ||
- uses: ./.github/actions/install-ios | ||
- uses: ./.github/actions/install-android | ||
- uses: ./.github/actions/build-ios | ||
- uses: mobile-dev-inc/[email protected] | ||
with: | ||
api-key: ${{ secrets.MAESTRO_CLOUD_API_KEY }} | ||
app-file: build/WeatherApp.app | ||
|
||
android-e2e-tests: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [20.x] | ||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | ||
|
||
outputs: | ||
apk: android/app/build/outputs/apk/release/app-release.apk | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/install | ||
- uses: ./.github/actions/install-android | ||
- uses: ./.github/actions/build-android | ||
- uses: mobile-dev-inc/[email protected] | ||
with: | ||
api-key: ${{ secrets.MAESTRO_CLOUD_API_KEY }} | ||
app-file: app/build/outputs/apk/debug/app-debug.apk |
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