Skip to content

Commit

Permalink
[#7] Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
blyscuit committed Sep 19, 2022
1 parent 10f2425 commit 52dbefa
Show file tree
Hide file tree
Showing 63 changed files with 374 additions and 13 deletions.
1 change: 0 additions & 1 deletion .github/workflows/android_review_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:

- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.10.0
with:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy Build To Firebase
name: Deploy iOS Staging Build To Firebase

# SECRETS needed:
### SSH_PRIVATE_KEY for Match Repo
Expand Down Expand Up @@ -39,6 +39,12 @@ jobs:
with:
access_token: ${{ github.token }}

- name: Set up JAVA 11
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'

- uses: actions/checkout@v2
# Set fetch-depth (default: 1) to get whole tree
with:
Expand All @@ -49,11 +55,14 @@ jobs:
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}

- name: Install Firebase-Tools
run: |
yarn global add firebase-tools
echo "$(yarn global bin)" >> $GITHUB_PATH
- name: Cache gems
uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Bundle install
# if: steps.bundleCache.outputs.cache-hit != 'true'
run: bundle install
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy Release Build To Firebase
name: Deploy iOS Release Build To Firebase

# SECRETS needed:
### SSH_PRIVATE_KEY for Match Repo
Expand Down Expand Up @@ -66,6 +66,22 @@ jobs:
- name: Bundle install
run: bundle install

- name: Cache Gradle
uses: actions/cache@v2
with:
path: |
~/.gradle/caches/modules-*
~/.gradle/caches/jars-*
~/.gradle/caches/build-cache-*
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Generate KMM frameworks for Cocoapods
run: |
cd ..
./gradlew generateDummyFramework
- name: Cache Pods
uses: actions/cache@v2
id: cocoapodCache
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/ios_review_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ jobs:
runs-on: macOS-latest
timeout-minutes: 30
steps:

- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.10.0
with:
Expand Down
8 changes: 4 additions & 4 deletions iosApp/fastlane/Managers/MatchManager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ def sync_adhoc_signing(app_identifier:, force: false)
)
@fastlane.update_code_signing_settings(
use_automatic_signing: false,
team_id: ENV["sigh_#{app_identifier}_adhoc_team-id"],
profile_name: ENV["sigh_#{app_identifier}_adhoc_profile-name"],
team_id: ENV["sigh_#{app_identifier[0]}_adhoc_team-id"],
profile_name: ENV["sigh_#{app_identifier[0]}_adhoc_profile-name"],
code_sign_identity: 'iPhone Distribution'
)
else
Expand All @@ -77,8 +77,8 @@ def sync_app_store_signing(app_identifier:)
)
@fastlane.update_code_signing_settings(
use_automatic_signing: false,
team_id: ENV["sigh_#{app_identifier}_appstore_team-id"],
profile_name: ENV["sigh_#{app_identifier}_appstore_profile-name"],
team_id: ENV["sigh_#{app_identifier[0]}_appstore_team-id"],
profile_name: ENV["sigh_#{app_identifier[0]}_appstore_profile-name"],
code_sign_identity: 'iPhone Distribution'
)
else
Expand Down
112 changes: 112 additions & 0 deletions iosApp/fastlane/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
fastlane documentation
----

# Installation

Make sure you have the latest version of the Xcode command line tools installed:

```sh
xcode-select --install
```

For _fastlane_ installation instructions, see [Installing _fastlane_](https://docs.fastlane.tools/#installing-fastlane)

# Available Actions

## iOS

### ios build_and_test

```sh
[bundle exec] fastlane ios build_and_test
```

Build and Test

### ios sync_development_signing

```sh
[bundle exec] fastlane ios sync_development_signing
```

Sync Development match signing

### ios sync_adhoc_signing

```sh
[bundle exec] fastlane ios sync_adhoc_signing
```

Sync Adhoc match signing

### ios sync_adhoc_production_signing

```sh
[bundle exec] fastlane ios sync_adhoc_production_signing
```

Sync Adhoc Production match signing

### ios sync_appstore_signing

```sh
[bundle exec] fastlane ios sync_appstore_signing
```

Sync AppStore match signing

### ios register_new_device

```sh
[bundle exec] fastlane ios register_new_device
```

Register new devices

### ios build_and_upload_staging_app

```sh
[bundle exec] fastlane ios build_and_upload_staging_app
```

Build and upload staging app to Firebase

### ios build_and_upload_production_app

```sh
[bundle exec] fastlane ios build_and_upload_production_app
```

Build and upload Production app to Firebase

### ios build_and_upload_appstore_app

```sh
[bundle exec] fastlane ios build_and_upload_appstore_app
```

Build and upload Production app to App Store

### ios clean_up

```sh
[bundle exec] fastlane ios clean_up
```

Clean up derived data

### ios clean_up_xcov

```sh
[bundle exec] fastlane ios clean_up_xcov
```

Clean up xcov output

----

This README.md is auto-generated and will be re-generated every time [_fastlane_](https://fastlane.tools) is run.

More information about _fastlane_ can be found on [fastlane.tools](https://fastlane.tools).

The documentation of _fastlane_ can be found on [docs.fastlane.tools](https://docs.fastlane.tools).
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"name":"SurveyUITests-75BCEFEB-117F-4351-A58D-A61E87B1FDC8","type":2},{"name":"scheduling.log","type":1}]
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"name":"SurveyTests-8A1DAD98-C8B9-4EBD-9A64-FC24C87E9547","type":2},{"name":"scheduling.log","type":1}]
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"name":"testmanagerd.log","type":1}]
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
29 changes: 29 additions & 0 deletions iosApp/fastlane/test_output/Survey Staging.xcresult/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>dateCreated</key>
<date>2022-09-15T03:50:39Z</date>
<key>externalLocations</key>
<array/>
<key>rootId</key>
<dict>
<key>hash</key>
<string>0~FluBgkX4duEYJSpdOAFOznGw0SFroUlg0f9ANMCFBVZQ6JBGvan3InU-7AiiIHFmXrCkDhdS4BJgHwe1uuSGxQ==</string>
</dict>
<key>storage</key>
<dict>
<key>backend</key>
<string>fileBacked2</string>
<key>compression</key>
<string>standard</string>
</dict>
<key>version</key>
<dict>
<key>major</key>
<integer>3</integer>
<key>minor</key>
<integer>37</integer>
</dict>
</dict>
</plist>
Loading

0 comments on commit 52dbefa

Please sign in to comment.