Skip to content

Commit 342314d

Browse files
Add secret to performance integration tests. (#7169)
* Add secret to performance integration tests. * Updat pull request path to trigger the GHA. * Remove pull request condition. * Remove dev test App GoogleService-Info.plist * Create README.md * Fix style.
1 parent 2a3da22 commit 342314d

File tree

8 files changed

+30
-160
lines changed

8 files changed

+30
-160
lines changed

.github/workflows/performance-integration-tests.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,18 @@ jobs:
3333
# TODO: Remove this job config after completely migrated to public repository.
3434
performance-integration-tests-public:
3535
if: github.repository == 'Firebase/firebase-ios-sdk'
36+
env:
37+
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
3638
runs-on: macos-latest
3739
steps:
3840
- uses: actions/checkout@v2
3941
- name: Setup Bundler
4042
run: scripts/setup_bundler.sh
43+
- name: Install Secret GoogleService-Info.plist
44+
run: |
45+
scripts/decrypt_gha_secret.sh scripts/gha-encrypted/Performance/GoogleService-Info_e2e_autopush.plist.gpg \
46+
FirebasePerformance/Tests/FIRPerfE2E/FIRPerfE2EAutopush/GoogleService-Info.plist "$plist_secret"
47+
scripts/decrypt_gha_secret.sh scripts/gha-encrypted/Performance/GoogleService-Info_e2e_prod.plist.gpg \
48+
FirebasePerformance/Tests/FIRPerfE2E/FIRPerfE2EProd/GoogleService-Info.plist "$plist_secret"
4149
- name: BuildAndTest # can be replaced with pod lib lint with CocoaPods 1.10
4250
run: scripts/third_party/travis/retry.sh scripts/build.sh Performance all integration

FirebasePerformance/Tests/FIRPerfE2E/FIRPerfE2EAutopush/GoogleService-Info.plist

Lines changed: 0 additions & 40 deletions
This file was deleted.

FirebasePerformance/Tests/FIRPerfE2E/FIRPerfE2EProd/GoogleService-Info.plist

Lines changed: 0 additions & 40 deletions
This file was deleted.

FirebasePerformance/Tests/TestApp/Plists/Autopush/FIRPerfTestAppAutopush/GoogleService-Info.plist

Lines changed: 0 additions & 40 deletions
This file was deleted.

FirebasePerformance/Tests/TestApp/Plists/Prod/FIRPerfTestApp/GoogleService-Info.plist

Lines changed: 0 additions & 40 deletions
This file was deleted.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# [Firebase Performance](https://firebase.google.com/docs/perf-mon/get-started-ios) Development App
2+
3+
## Setup
4+
5+
Download the `GoogleService-Info.plist` file from [Firebase Console](https://console.firebase.google.com/)
6+
(for whatever Firebase project you have or want to integrate the `dev-app`). For Autopush environment, store the
7+
`GoogleService-Info.plist` under [Plists/Autopush/FIRPerfTestAppAutopush/](./Plists/Autopush/FIRPerfTestAppAutopush/).
8+
For Prod environment, project, store the `GoogleService-Info.plist` under [Plists/Prod/FIRPerfTestApp/](./Plists/Prod/FIRPerfTestApp/).
9+
10+
## Build
11+
12+
### Generate project for Prod environment from [FirebasePerformance](../../)
13+
14+
- `sh generate_project.sh -e "prod"`
15+
16+
### Generate project for Autopush environment from [FirebasePerformance](../../)
17+
18+
- `sh generate_project.sh` (or) `sh generate_project.sh -e "autopush"`
19+
20+
## Run
21+
22+
- Select `FirebasePerformance-TestApp` target and device to run the App
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)