Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,21 @@ jobs:
- name: Install dependencies
run: pnpm install

- name: Cache Firebase emulators
uses: actions/cache@v4
with:
path: ~/.cache/firebase/emulators
key: ${{ runner.os }}-firebase-emulators-${{ hashFiles('.github/workflows/release.yml') }}
Copy link

Copilot AI Aug 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The cache key includes a hash of the workflow file itself, which will invalidate the cache every time this workflow is modified. Consider using a more stable hash like package.json or firebase.json instead, as emulator binaries don't change with workflow modifications.

Suggested change
key: ${{ runner.os }}-firebase-emulators-${{ hashFiles('.github/workflows/release.yml') }}
key: ${{ runner.os }}-firebase-emulators-${{ hashFiles('firebase.json') }}

Copilot uses AI. Check for mistakes.
restore-keys: |
${{ runner.os }}-firebase-emulators-

- name: Install Firebase CLI
uses: nick-invision/retry@v3
with:
timeout_minutes: 10
retry_wait_seconds: 60
max_attempts: 3
command: npm i -g firebase-tools@14
command: npm i -g firebase-tools@latest
Copy link

Copilot AI Aug 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using @latest for firebase-tools in CI can lead to unpredictable builds when new versions are released. Consider pinning to a specific version or using a version range to ensure build reproducibility.

Suggested change
command: npm i -g firebase-tools@latest
command: npm i -g firebase-tools@12.6.1

Copilot uses AI. Check for mistakes.

- name: Run tests with emulator
run: pnpm test:emulator
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,21 @@ jobs:
sudo apt-get install -y openjdk-17-jdk
java -version

- name: Cache Firebase emulators
uses: actions/cache@v4
with:
path: ~/.cache/firebase/emulators
key: ${{ runner.os }}-firebase-emulators-${{ hashFiles('.github/workflows/tests.yaml') }}
Copy link

Copilot AI Aug 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The cache key includes a hash of the workflow file itself, which will invalidate the cache every time this workflow is modified. Consider using a more stable hash like package.json or firebase.json instead, as emulator binaries don't change with workflow modifications.

Suggested change
key: ${{ runner.os }}-firebase-emulators-${{ hashFiles('.github/workflows/tests.yaml') }}
key: ${{ runner.os }}-firebase-emulators-${{ hashFiles('package.json', 'firebase.json') }}

Copilot uses AI. Check for mistakes.
restore-keys: |
${{ runner.os }}-firebase-emulators-

- name: Install Firebase CLI
uses: nick-invision/retry@v3
with:
timeout_minutes: 10
retry_wait_seconds: 60
max_attempts: 3
command: npm i -g firebase-tools@14
command: npm i -g firebase-tools@latest
Copy link

Copilot AI Aug 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using @latest for firebase-tools in CI can lead to unpredictable builds when new versions are released. Consider pinning to a specific version or using a version range to ensure build reproducibility.

Suggested change
command: npm i -g firebase-tools@latest
command: npm i -g firebase-tools@12.4.3

Copilot uses AI. Check for mistakes.

# Determine which packages have changed
- name: Determine changed packages
Expand Down
3 changes: 3 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
"database": {
"port": 9000
},
"dataconnect": {
"port": 9399
},
"ui": {
"enabled": true
}
Expand Down