Skip to content

Commit ca4a655

Browse files
authored
Add quickstart tests (#5544)
* Add Quickstart tests
1 parent 7ddbb42 commit ca4a655

File tree

9 files changed

+145
-0
lines changed

9 files changed

+145
-0
lines changed

.github/workflows/abtesting.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: abtesting
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
paths:
9+
- 'FirebaseABTesting**'
10+
- '.github/workflows/abtesting.yml'
11+
- 'Gemfile'
12+
schedule:
13+
# Run every day at 11pm (PST) - cron uses UTC times
14+
- cron: '0 7 * * *'
15+
16+
jobs:
17+
18+
quickstart:
19+
env:
20+
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
21+
signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
22+
runs-on: macOS-latest
23+
steps:
24+
- uses: actions/checkout@v2
25+
- name: Setup quickstart
26+
run: scripts/setup_quickstart.sh abtesting
27+
- name: Install Secret GoogleService-Info.plist
28+
run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-abtesting.plist.gpg \
29+
quickstart-ios/abtesting/GoogleService-Info.plist "$plist_secret"
30+
- name: Install Secret FIREGSignInInfo.h
31+
run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/FIREGSignInInfo.h.gpg \
32+
quickstart-ios/TestUtils/FIREGSignInInfo.h "$signin_secret"
33+
- name: Test quickstart
34+
run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh ABTesting)
35+

.github/workflows/database.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: database
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
paths:
9+
- 'FirebaseDatabase**'
10+
- '.github/workflows/database.yml'
11+
- 'Gemfile'
12+
schedule:
13+
# Run every day at 11pm (PST) - cron uses UTC times
14+
- cron: '0 7 * * *'
15+
16+
jobs:
17+
18+
quickstart:
19+
env:
20+
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
21+
signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
22+
runs-on: macOS-latest
23+
steps:
24+
- uses: actions/checkout@v2
25+
- name: Setup quickstart
26+
run: scripts/setup_quickstart.sh database
27+
- name: Install Secret GoogleService-Info.plist
28+
run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-database.plist.gpg \
29+
quickstart-ios/database/GoogleService-Info.plist "$plist_secret"
30+
- name: Install Secret FIREGSignInInfo.h
31+
run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/FIREGSignInInfo.h.gpg \
32+
quickstart-ios/TestUtils/FIREGSignInInfo.h "$signin_secret"
33+
- name: Test quickstart
34+
run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Database)
35+

.github/workflows/functions.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: functions
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
paths:
9+
- 'FirebaseFunctions**'
10+
- '.github/workflows/functions.yml'
11+
- 'Gemfile'
12+
schedule:
13+
# Run every day at 11pm (PST) - cron uses UTC times
14+
- cron: '0 7 * * *'
15+
16+
jobs:
17+
18+
quickstart:
19+
env:
20+
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
21+
signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
22+
runs-on: macOS-latest
23+
needs: check
24+
25+
steps:
26+
- uses: actions/checkout@v2
27+
- name: Setup quickstart
28+
run: scripts/setup_quickstart.sh functions
29+
- name: install secret googleservice-info.plist
30+
run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-functions.plist.gpg \
31+
quickstart-ios/functions/GoogleService-Info.plist "$plist_secret"
32+
- name: Install Secret FIREGSignInInfo.h
33+
run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/FIREGSignInInfo.h.gpg \
34+
quickstart-ios/TestUtils/FIREGSignInInfo.h "$signin_secret"
35+
- name: Test quickstart
36+
run: ([ -z $plist_secret ] ||
37+
scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Functions)

.github/workflows/inappmessaging.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: inappmessaging
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
paths:
9+
- 'FirebaseInAppMessaging**'
10+
- '.github/workflows/InAppMessaging.yml'
11+
- 'Gemfile'
12+
schedule:
13+
# Run every day at 11pm (PST) - cron uses UTC times
14+
- cron: '0 7 * * *'
15+
16+
jobs:
17+
18+
quickstart:
19+
env:
20+
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
21+
signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
22+
runs-on: macOS-latest
23+
needs: check
24+
25+
steps:
26+
- uses: actions/checkout@v2
27+
- name: Setup quickstart
28+
run: scripts/setup_quickstart.sh inappmessaging
29+
- name: install secret googleservice-info.plist
30+
run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-inappmessaging.plist.gpg \
31+
quickstart-ios/inappmessaging/GoogleService-Info.plist "$plist_secret"
32+
- name: Install Secret FIREGSignInInfo.h
33+
run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/FIREGSignInInfo.h.gpg \
34+
quickstart-ios/TestUtils/FIREGSignInInfo.h "$signin_secret"
35+
- name: Test quickstart
36+
run: ([ -z $plist_secret ] ||
37+
scripts/third_party/travis/retry.sh scripts/test_quickstart.sh InAppMessaging)
38+
691 Bytes
Binary file not shown.
682 Bytes
Binary file not shown.
684 Bytes
Binary file not shown.
692 Bytes
Binary file not shown.
690 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)