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 the ci-dev-app.yml Github Action/build. #76

Merged
merged 46 commits into from
Jul 9, 2024
Merged

Fix the ci-dev-app.yml Github Action/build. #76

merged 46 commits into from
Jul 9, 2024

Conversation

jplodge-pro
Copy link
Member

@jplodge-pro jplodge-pro commented Jul 9, 2024

To Do

Some oddness around module inter-dependency. turbo does not recognise that other modules depend on sdk. More investigations needed.

Did

  • Modified the workflow to explicitly pre-build sdk and then build everything else.
  • Updated turbo, husky and lint-staged (dependencies in root project).
  • Modified the turbo config to enforce some standard dependency-centric tasks across all the packages (e.g. clean, build etc.)
  • Added some missing tasks, where missing and where appropriate (mostly added clean tasks per package).
  • Added a build:ui task to sdk so that the turbo build dependency kicks in and builds sdk before app.
  • HACKED the build to put the non-NEXT_PUBLIC_ environment variables into the app/.env.local file to be picked up and compiled into the project.
  • Removed spikes and scripts as Yarn Workspaces, as they don't exist anymore.

Conclusion

The issue is fixed, but via a hack is concerning.

Resolves #68

jplodge-pro and others added 28 commits July 8, 2024 19:48
…nfig will need the CBL Token address at construct time
…nfig will need the CBL Token address at construct time
… exist.

Upgraded Turbo, Husky and lint-staged versions to latest
Updated the Yarn Scripts to match the supported Turbo ones.
@jplodge-pro jplodge-pro mentioned this pull request Jul 9, 2024
Copy link

openzeppelin-code bot commented Jul 9, 2024

Fix the ci-dev-app.yml Github Action/build.

Generated at commit: 87a59e22217504826df736427296c6845dfc663c

🚨 Report Summary

Severity Level Results
Contracts Critical
High
Medium
Low
Note
Total
1
0
0
4
15
20
Dependencies Critical
High
Medium
Low
Note
Total
0
0
0
0
0
0

For more details view the full report in OpenZeppelin Code Inspector

…ust invokes the same thing as `build` instead of invoking `yarn build`"

This reverts commit c80f9e6.
Print out the env.
Removed debugging from the vercel build command.
reduced the extent of the hack by only including the non-NEXT_PUBLIC_ variables in the `.env.local` file.
@jplodge-pro jplodge-pro marked this pull request as ready for review July 9, 2024 12:53
Removed the sdk build from the `ci-dev-app.yml`.
@lucasia lucasia merged commit d49c752 into main Jul 9, 2024
2 checks passed
@lucasia lucasia deleted the fix-app-build2 branch July 9, 2024 19:05
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.

CredbullSDK dependency breaks vercel build
3 participants