Skip to content

Commit b279d1e

Browse files
authored
Merge branch 'main' into dependabot/npm_and_yarn/smoke-tests/src/androidTest/backend/functions/functions/semver-7.5.4
2 parents f594f23 + 72c0dcb commit b279d1e

File tree

1,740 files changed

+119640
-22868
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,740 files changed

+119640
-22868
lines changed

.github/workflows/api-information.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@ jobs:
77
if: github.event.pull_request.head.repo.full_name == github.repository
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v3
10+
- uses: actions/checkout@v4.1.1
1111
with:
1212
fetch-depth: 2
1313
submodules: true
14-
- name: Set up JDK 11
15-
uses: actions/setup-java@v3
14+
- name: Set up JDK 17
15+
uses: actions/setup-java@v4.1.0
1616
with:
17-
java-version: 11
17+
java-version: 17
1818
distribution: temurin
1919
cache: gradle
2020
- name: Set up Python 3.10
21-
uses: actions/setup-python@v4
21+
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3
2222
with:
2323
python-version: '3.10'
2424
- name: Set up fireci

.github/workflows/build-release-artifacts.yml

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,40 @@ on:
88

99
jobs:
1010
build-artifacts:
11-
# TODO(b/271315039) - Revert back to ubuntu when fixed
12-
runs-on: macos-latest
11+
runs-on: ubuntu-latest
1312
env:
1413
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1514
steps:
16-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4.1.1
1716

18-
- name: Set up JDK 11
19-
uses: actions/setup-java@v3
17+
- name: Set up JDK 17
18+
uses: actions/setup-java@v4.1.0
2019
with:
21-
java-version: 11
20+
java-version: 17
2221
distribution: temurin
2322
cache: gradle
2423

2524
- name: Perform gradle build
2625
run: |
2726
./gradlew firebasePublish
2827
29-
- name: Upload generated artifacts
30-
uses: actions/upload-artifact@v2
28+
- name: Upload m2 repo
29+
uses: actions/upload-artifact@v4.3.3
3130
with:
32-
name: release_artifacts
33-
path: build/*.zip
31+
name: m2repository
32+
path: build/m2repository/
33+
retention-days: 15
34+
35+
- name: Upload release notes
36+
uses: actions/[email protected]
37+
with:
38+
name: release_notes
39+
path: build/release-notes/
40+
retention-days: 15
41+
42+
- name: Upload kotlindocs
43+
uses: actions/[email protected]
44+
with:
45+
name: kotlindocs
46+
path: build/firebase-kotlindoc/
3447
retention-days: 15

.github/workflows/build-src-check.yml

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

.github/workflows/changelog.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Changelog
1+
name: Verify changelog update
22

33
on:
44
pull_request
@@ -13,7 +13,7 @@ jobs:
1313
env:
1414
BUNDLE_GEMFILE: ./ci/danger/Gemfile
1515
steps:
16-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4.1.1
1717
with:
1818
fetch-depth: 100
1919
submodules: true

.github/workflows/check-head-dependencies.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,16 @@ on:
77
- 'releases/**'
88

99
jobs:
10-
build-artifacts:
10+
check-head-dependencies:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v3
14-
13+
- uses: actions/[email protected]
14+
- name: Set up JDK 17
15+
uses: actions/[email protected]
16+
with:
17+
java-version: 17
18+
distribution: temurin
19+
cache: gradle
1520
- name: Perform gradle build
1621
run: |
1722
./gradlew checkHeadDependencies
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Check Vertex AI Responses
2+
3+
on: pull_request
4+
5+
jobs:
6+
check-version:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- name: Clone mock responses
11+
run: firebase-vertexai/update_responses.sh
12+
- name: Find cloned and latest versions
13+
run: |
14+
CLONED=$(git describe --tags)
15+
LATEST=$(git tag --sort=v:refname | tail -n1)
16+
echo "cloned_tag=$CLONED" >> $GITHUB_ENV
17+
echo "latest_tag=$LATEST" >> $GITHUB_ENV
18+
working-directory: firebase-vertexai/src/test/resources/vertexai-sdk-test-data
19+
- name: Find comment from previous run if exists
20+
uses: peter-evans/find-comment@3eae4d37986fb5a8592848f6a574fdf654e61f9e
21+
id: fc
22+
with:
23+
issue-number: ${{github.event.number}}
24+
body-includes: Vertex AI Mock Responses Check
25+
- name: Comment on PR if newer version is available
26+
if: ${{env.cloned_tag != env.latest_tag && !steps.fc.outputs.comment-id}}
27+
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043
28+
with:
29+
issue-number: ${{github.event.number}}
30+
body: >
31+
### Vertex AI Mock Responses Check :warning:
32+
33+
A newer major version of the mock responses for Vertex AI unit tests is available.
34+
[update_responses.sh](https://github.com/firebase/firebase-android-sdk/blob/main/firebase-vertexai/update_responses.sh)
35+
should be updated to clone the latest version of the responses: `${{env.latest_tag}}`
36+
- name: Delete comment when version gets updated
37+
if: ${{env.cloned_tag == env.latest_tag && steps.fc.outputs.comment-id}}
38+
uses: detomarco/delete-comment@850734dd44d8b15fef55b45252613b903ceb06f0
39+
with:
40+
comment-id: ${{ steps.fc.outputs.comment-id }}

.github/workflows/check_format.yml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
name: Check Format
2+
concurrency:
3+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
4+
cancel-in-progress: true
5+
on:
6+
pull_request:
7+
push:
8+
branches:
9+
- main
10+
11+
jobs:
12+
determine_changed:
13+
name: "Determine changed modules"
14+
runs-on: ubuntu-22.04
15+
if: (github.repository == 'Firebase/firebase-android-sdk' && github.event_name == 'push') || github.event_name == 'pull_request'
16+
outputs:
17+
modules: ${{ steps.changed-modules.outputs.modules }}
18+
steps:
19+
- uses: actions/[email protected]
20+
with:
21+
fetch-depth: 2
22+
submodules: true
23+
24+
- name: Set up JDK 17
25+
uses: actions/[email protected]
26+
with:
27+
java-version: 17
28+
distribution: temurin
29+
cache: gradle
30+
31+
- id: changed-modules
32+
run: |
33+
git diff --name-only HEAD~1 | xargs printf -- '--changed-git-paths %s\n' | xargs ./gradlew writeChangedProjects --output-file-path=modules.json
34+
echo modules=$(cat modules.json) >> $GITHUB_OUTPUT
35+
36+
check_format:
37+
name: "Check Format"
38+
runs-on: ubuntu-22.04
39+
needs:
40+
- determine_changed
41+
strategy:
42+
fail-fast: false
43+
matrix:
44+
module: ${{ fromJSON(needs.determine_changed.outputs.modules) }}
45+
46+
steps:
47+
- uses: actions/[email protected]
48+
with:
49+
fetch-depth: 2
50+
submodules: true
51+
52+
- name: Set up JDK 17
53+
uses: actions/[email protected]
54+
with:
55+
java-version: 17
56+
distribution: temurin
57+
cache: gradle
58+
59+
- name: ${{ matrix.module }} Check Format
60+
run: |
61+
./gradlew ${{matrix.module}}:spotlessCheck
62+
63+
# A job that fails if any job in the check_format matrix fails,
64+
# to be used as a required check for merging.
65+
check_all:
66+
runs-on: ubuntu-22.04
67+
if: always()
68+
name: Check Format (matrix)
69+
needs: check_format
70+
steps:
71+
- name: Check matrix
72+
if: needs.check_format.result != 'success'
73+
run: exit 1

0 commit comments

Comments
 (0)