Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Infra] Require firestore status check only if firestore code changes #13678

Merged
merged 11 commits into from
Sep 24, 2024
18 changes: 9 additions & 9 deletions .github/workflows/firestore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ jobs:
# Either a scheduled run from public repo, or a pull request with firestore changes.
if: |
(github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') ||
(github.event_name == 'pull_request' && needs.changes.outputs.changed == 'true')
(github.event_name == 'pull_request')
runs-on: macos-14
needs: check

Expand All @@ -342,17 +342,18 @@ jobs:

- name: Build and test
run: |
echo {{ needs.changes.outputs.changed }}
ncooke3 marked this conversation as resolved.
Show resolved Hide resolved
export EXPERIMENTAL_MODE=true
scripts/third_party/travis/retry.sh scripts/build.sh Firestore ${{ matrix.target }} xcodebuild


pod-lib-lint:
needs: check
# Either a scheduled run from public repo, or a pull request with firestore changes.
if: |
(github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') ||
(github.event_name == 'pull_request' && needs.changes.outputs.changed == 'true')
(github.event_name == 'pull_request')
runs-on: macos-13
needs: check
strategy:
matrix:
podspec: [
Expand Down Expand Up @@ -430,11 +431,13 @@ jobs:
--no-analyze

spm-source:
needs: check
# Either a scheduled run from public repo, or a pull request with firestore changes.
if: |
(github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') ||
(github.event_name == 'pull_request' && needs.changes.outputs.changed == 'true')
(github.event_name == 'pull_request')
strategy:
max-parallel: 1
ncooke3 marked this conversation as resolved.
Show resolved Hide resolved
matrix:
target: [iOS, tvOS, macOS]
os: [macos-13, macos-14]
Expand All @@ -447,7 +450,6 @@ jobs:
xcode: Xcode_15.3
target: visionOS
runs-on: ${{ matrix.os }}
needs: check
env:
FIREBASE_SOURCE_FIRESTORE: 1
steps:
Expand All @@ -463,12 +465,12 @@ jobs:
run: scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseFirestore ${{ matrix.target }} spmbuildonly

spm-binary:
needs: check
# Either a scheduled run from public repo, or a pull request with firestore changes.
if: |
(github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') ||
(github.event_name == 'pull_request' && needs.changes.outputs.changed == 'true')
runs-on: macos-14
needs: check
steps:
- uses: actions/checkout@v4
- uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
Expand Down Expand Up @@ -551,15 +553,13 @@ jobs:
# to be used as a required check for merging.
check-required-tests:
runs-on: ubuntu-latest
if: always()
name: Check all required Firestore tests results
needs: [cmake, cmake-prod-db, xcodebuild, spm-source, spm-binary]
steps:
- name: Check test matrix
if: needs.cmake.result == 'failure' || needs.cmake-prod-db.result == 'failure' || needs.xcodebuild.result == 'failure' || needs.spm.result == 'failure'
if: needs.*.result == 'failure'
run: exit 1


# Disable until FirebaseUI is updated to accept Firebase 9 and quickstart is updated to accept
# Firebase UI 12
# quickstart:
Expand Down
Loading