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

fix: Optimize Firebase CI workflows with caching for firebase.json #82

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

warnyul
Copy link
Owner

@warnyul warnyul commented Dec 9, 2024

  • Workflows Updated:

    • delete-firebase-hosting-channel.yml:

      • Added caching for firebase.json using actions/cache to persist configuration across workflow runs.
      • Updated actions/checkout and w9jds/firebase-action to pinned versions for enhanced stability.
      • Conditional execution of Firebase actions based on cache availability.
    • firebase-hosting-pull-request.yml:

      • Implemented actions/cache/save to store firebase.json after build and test steps.
      • Updated workflow to ensure firebase.json is available for subsequent Firebase deployments.
  • Impact:

    • Speeds up Firebase workflow executions by reducing redundant firebase.json generation.
    • Enhances workflow reliability with pinned dependencies and optimized caching.

- **Workflows Updated**:
  - **`delete-firebase-hosting-channel.yml`**:
    - Added caching for `firebase.json` using `actions/cache` to persist configuration across workflow runs.
    - Updated `actions/checkout` and `w9jds/firebase-action` to pinned versions for enhanced stability.
    - Conditional execution of Firebase actions based on cache availability.

  - **`firebase-hosting-pull-request.yml`**:
    - Implemented `actions/cache/save` to store `firebase.json` after build and test steps.
    - Updated workflow to ensure `firebase.json` is available for subsequent Firebase deployments.

- **Impact**:
  - Speeds up Firebase workflow executions by reducing redundant `firebase.json` generation.
  - Enhances workflow reliability with pinned dependencies and optimized caching.
@warnyul warnyul self-assigned this Dec 9, 2024
Copy link

github-actions bot commented Dec 9, 2024

Visit the preview URL for this PR (updated for commit 7e50469):

https://bvarga-fe600--pr82-cache-firebase-json-zbn6mkfn.web.app

(expires Mon, 16 Dec 2024 06:48:57 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: a3b1098a9eaf0750a134a339972f1df2a3969a8d

@warnyul warnyul merged commit 18d14c9 into main Dec 9, 2024
2 checks passed
@warnyul warnyul deleted the cache-firebase-json branch December 9, 2024 06:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant