Skip to content

Commit 53430ea

Browse files
committed
database
1 parent c9d7d1e commit 53430ea

File tree

2 files changed

+85
-81
lines changed

2 files changed

+85
-81
lines changed

.github/workflows/common_quickstart.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,16 @@ on:
4646
type: string
4747
required: true
4848

49-
# quickstart_type:
50-
# type: string
49+
# swift or objc
50+
quickstart_type:
51+
type: string
52+
required: false
53+
default: objc
54+
55+
run_tests:
56+
type: boolean
57+
required: false
58+
default: true
5159

5260
# A command to execute before testing.
5361
#
@@ -86,15 +94,19 @@ jobs:
8694
${{ inputs.plist_src_path }} \
8795
${{ inputs.plist_dst_path }} \
8896
"$plist_secret"
89-
- name: Build ${{ inputs.product }} Quickstart
97+
- name: Build ${{ inputs.product }} Quickstart (${{ inputs.quickstart_type }} / ${{ inputs.is_legacy && "Legacy" || "Non-Legacy" }})
9098
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3
9199
env:
92100
LEGACY: ${{ inputs.is_legacy }}
93101
with:
94102
timeout_minutes: 15
95103
max_attempts: 3
96104
retry_wait_seconds: 120
97-
command: scripts/test_quickstart.sh ${{ inputs.product }} true
105+
command: |
106+
scripts/test_quickstart.sh \
107+
${{ inputs.product }} \
108+
${{ inputs.run_tests }} \
109+
${{ inputs.quickstart_type }}
98110
# TODO: Add upload on fialure.
99111
# - name: Upload raw logs if failed.
100112
# if: ${{ failure() }}

.github/workflows/database.yml

Lines changed: 69 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -27,87 +27,79 @@ concurrency:
2727
cancel-in-progress: true
2828

2929
jobs:
30-
spm:
31-
strategy:
32-
matrix:
33-
target: [DatabaseUnit, DatabaseUnitSwift]
34-
uses: ./.github/workflows/common.yml
35-
with:
36-
target: ${{ matrix.target }}
30+
# spm:
31+
# strategy:
32+
# matrix:
33+
# target: [DatabaseUnit, DatabaseUnitSwift]
34+
# uses: ./.github/workflows/common.yml
35+
# with:
36+
# target: ${{ matrix.target }}
3737

38-
catalyst:
39-
uses: ./.github/workflows/common_catalyst.yml
40-
with:
41-
product: FirebaseDatabase
42-
target: FirebaseDatabase-Unit-unit
38+
# catalyst:
39+
# uses: ./.github/workflows/common_catalyst.yml
40+
# with:
41+
# product: FirebaseDatabase
42+
# target: FirebaseDatabase-Unit-unit
4343

44-
pod_lib_lint:
45-
uses: ./.github/workflows/common_cocoapods.yml
46-
with:
47-
product: FirebaseDatabase
48-
test_specs: unit
49-
buildonly_platforms: macOS
44+
# pod_lib_lint:
45+
# uses: ./.github/workflows/common_cocoapods.yml
46+
# with:
47+
# product: FirebaseDatabase
48+
# test_specs: unit
49+
# buildonly_platforms: macOS
5050

51-
integration:
52-
# Don't run on private repo unless it is a PR.
53-
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
54-
runs-on: macos-15
55-
steps:
56-
- uses: actions/checkout@v4
57-
- uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
58-
with:
59-
cache_key: integration${{ matrix.os }}
60-
- uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
61-
- name: Setup Bundler
62-
run: scripts/setup_bundler.sh
63-
- name: Install xcpretty
64-
run: gem install xcpretty
65-
- name: Xcode
66-
run: sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer
67-
- name: IntegrationTest
68-
# Only iOS to mitigate flakes.
69-
run: scripts/third_party/travis/retry.sh scripts/build.sh Database iOS integration
51+
# integration:
52+
# # Don't run on private repo unless it is a PR.
53+
# if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
54+
# runs-on: macos-15
55+
# steps:
56+
# - uses: actions/checkout@v4
57+
# - uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
58+
# with:
59+
# cache_key: integration${{ matrix.os }}
60+
# - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
61+
# - name: Setup Bundler
62+
# run: scripts/setup_bundler.sh
63+
# - name: Install xcpretty
64+
# run: gem install xcpretty
65+
# - name: Xcode
66+
# run: sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer
67+
# - name: IntegrationTest
68+
# # Only iOS to mitigate flakes.
69+
# run: scripts/third_party/travis/retry.sh scripts/build.sh Database iOS integration
7070

7171
quickstart:
72-
# Don't run on private repo unless it is a PR.
73-
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
74-
env:
75-
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
76-
signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
77-
runs-on: macos-15
78-
steps:
79-
- uses: actions/checkout@v4
80-
- uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
81-
- name: Setup quickstart
82-
run: scripts/setup_quickstart.sh database
83-
- name: Install Secret GoogleService-Info.plist
84-
run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-database.plist.gpg \
85-
quickstart-ios/database/GoogleService-Info.plist "$plist_secret"
86-
- name: Xcode
87-
run: sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer
88-
- name: Test objc quickstart
89-
run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Database false)
90-
- name: Test swift quickstart
91-
run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Database false swift)
92-
93-
database-cron-only:
94-
# Don't run on private repo.
95-
if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
96-
runs-on: macos-15
72+
uses: ./.github/workflows/common_quickstart.yml
9773
strategy:
9874
matrix:
99-
podspec: [FirebaseDatabase.podspec]
100-
target: [ios, tvos, macos]
101-
flags: [
102-
'--skip-tests --use-static-frameworks'
103-
]
104-
needs: pod_lib_lint
105-
steps:
106-
- uses: actions/checkout@v4
107-
- uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
108-
- name: Xcode
109-
run: sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer
110-
- name: Setup Bundler
111-
run: scripts/setup_bundler.sh
112-
- name: PodLibLint database Cron
113-
run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb ${{ matrix.podspec }} --platforms=${{ matrix.target }} ${{ matrix.flags }}
75+
quickstart_type: [objc, swift]
76+
with:
77+
product: Database
78+
is_legacy: false
79+
setup_command: scripts/setup_quickstart.sh database
80+
plist_src_path: scripts/gha-encrypted/qs-database.plist.gpg
81+
plist_dst_path: quickstart-ios/database/GoogleService-Info.plist
82+
quickstart_type: ${{ matrix.quickstart_type }}
83+
run_tests: false
84+
85+
# database-cron-only:
86+
# # Don't run on private repo.
87+
# if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
88+
# runs-on: macos-15
89+
# strategy:
90+
# matrix:
91+
# podspec: [FirebaseDatabase.podspec]
92+
# target: [ios, tvos, macos]
93+
# flags: [
94+
# '--skip-tests --use-static-frameworks'
95+
# ]
96+
# needs: pod_lib_lint
97+
# steps:
98+
# - uses: actions/checkout@v4
99+
# - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
100+
# - name: Xcode
101+
# run: sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer
102+
# - name: Setup Bundler
103+
# run: scripts/setup_bundler.sh
104+
# - name: PodLibLint database Cron
105+
# run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb ${{ matrix.podspec }} --platforms=${{ matrix.target }} ${{ matrix.flags }}

0 commit comments

Comments
 (0)