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

GitHub Action fixes for web frameworks #6883

Merged
merged 17 commits into from
Jul 15, 2024

Conversation

leoortizz
Copy link
Member

@leoortizz leoortizz commented Mar 15, 2024

Description

  • If user chooses to set up a build script, do not suggest npm ci && npm run build. The reasons are:
    • The user can edit it and drop npm ci, which is required for frameworks.
    • It implies that build is required, but the frameworks code run the build for all frameworks, so if users does it themselves every action would build their app twice.
  • Add npm ci script automatically when using web framework.
  • Automatically adds a working directory config set to the hosting.source directory when hosting.source is not '.'. This is needed because "hosting" is the default directory on firebase init hosting, so if the user follows all the default options, at the end the deployment would fail as npm ci would run outside the project directory.
  • Add FIREBASE_CLI_EXPERIMENTS: "webframeworks" when using web frameworks.

Fixes #6863, #6532 and the issues described above.

Scenarios Tested

Sample Commands

@codecov-commenter
Copy link

codecov-commenter commented Mar 15, 2024

Codecov Report

Attention: Patch coverage is 0% with 24 lines in your changes missing coverage. Please review.

Project coverage is 53.86%. Comparing base (6039938) to head (aed640f).
Report is 20 commits behind head on master.

Files Patch % Lines
src/init/features/hosting/github.ts 0.00% 24 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6883      +/-   ##
==========================================
+ Coverage   53.82%   53.86%   +0.03%     
==========================================
  Files         388      388              
  Lines       26281    26325      +44     
  Branches     5404     5418      +14     
==========================================
+ Hits        14147    14180      +33     
- Misses      10866    10875       +9     
- Partials     1268     1270       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@leoortizz leoortizz enabled auto-merge (squash) July 15, 2024 22:41
@leoortizz leoortizz merged commit f2a1d60 into master Jul 15, 2024
41 checks passed
@leoortizz leoortizz deleted the leoortizz/frameworksActionFixes branch July 30, 2024 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Next.js framework not detected in GitHub Action
3 participants