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

Fritz hoing Github actions improvements #6120

Merged
merged 20 commits into from
Jun 26, 2024
Merged

Conversation

ichim-david
Copy link
Member

@ichim-david ichim-david commented Jun 23, 2024


📚 Documentation preview 📚: https://volto--6120.org.readthedocs.build/

Checked out pull request https://github.com/plone/volto/pull/6108/files and fixed the issues
regarding the action run error codes for example:
Error: /home/runner/work/volto/volto/./.github/actions/pre_test_setup/action.yml (Line: 4, Col: 3): There's not enough info to determine what you meant. Add one of these properties: args, entrypoint, env, image, main, post, post-entrypoint, pre, pre-entrypoint, steps

@ichim-david ichim-david requested a review from sneridagh June 23, 2024 07:07
Copy link

netlify bot commented Jun 23, 2024

Deploy Preview for plone-components canceled.

Name Link
🔨 Latest commit f0f14bf
🔍 Latest deploy log https://app.netlify.com/sites/plone-components/deploys/667bf93ea6c53c0008455415

@ichim-david
Copy link
Member Author

Closing in favor of having commit suggestions to the original pull request #6108 (review)

@ichim-david ichim-david deleted the FritzHoing-improve-workflow branch June 23, 2024 07:43
@ichim-david ichim-david restored the FritzHoing-improve-workflow branch June 23, 2024 11:36
@ichim-david ichim-david reopened this Jun 23, 2024
@ichim-david
Copy link
Member Author

ichim-david commented Jun 23, 2024

@stevepiercy Have another look here, this pull request still contains the work of @FritzHoing with the right attribution plus my changes since it's very cumbersome todo suggest commits especially where it's a trial and error.
Every shell: bash is needed, you can look at the failures I got after removing them f04c741
and all of the commits I did until the build was clean

Copy link
Collaborator

@stevepiercy stevepiercy left a comment

Choose a reason for hiding this comment

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

Thanks for the thorough verification of extracting all the repetitive steps, including bash requirement. I especially like that you added a name to an unnamed step. It's documentation! 😁

@plone/volto-team this is good work that you could use as an example and apply to your own CI to avoid copy-pasta mistakes. Please take a moment to review.

@sneridagh
Copy link
Member

@ichim-david @FritzHoing Awesome work! Thanks for working on this. Could we find a better naming for the action? pre_test_setup is too vague for me, in anticipation that we could have more in the future. How about node_pnpm_setup or setup_node_pnpm? Ahhhh, naming, naming

@stevepiercy
Copy link
Collaborator

I find naming a thing by what it does, not its tool name, is usually more descriptive and long-lived. If you ever change the tool (which never happens in JavaScript), you don't have to change the name.

It creates a universal test setup, so universal_test_setup works for me.

@ichim-david
Copy link
Member Author

@sneridagh @stevepiercy I agree on the naming needs tweaking, it's for that reason that I replaced Pretest-Setup with
name: Set up testing infrastructure when using it. Should that naming also be changed so something else?

I don't mind the universal_test_setup naming.
acceptance_test_setup?

Maybe you can come to an agreement on the naming and proposing it then, maybe talk with Eric and David and see what you guys thing makes most sense.

@sneridagh
Copy link
Member

@stevepiercy @ichim-david the fact is that it can be used outside acceptance, in unit and code quality too. It's setting up the node version and pnpm in the right way. Also, is not universal, as we can configure other things too, like Python...

@sneridagh
Copy link
Member

@stevepiercy and I, we discussed it and agreed on node_env_setup, @ichim-david opinion?

@ichim-david
Copy link
Member Author

@sneridagh I'm fine with it what about the step name?

@sneridagh
Copy link
Member

sneridagh commented Jun 26, 2024

@ichim-david Set up NodeJS environment ? @stevepiercy ?

@stevepiercy
Copy link
Collaborator

Yup. We have a winner!

@ichim-david
Copy link
Member Author

@sneridagh done, let's see the testing and then a merge of main and I think it's good to go.

Copy link
Collaborator

@stevepiercy stevepiercy left a comment

Choose a reason for hiding this comment

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

It's Node.js per https://nodejs.org/en

.github/actions/node_env_setup/action.yml Outdated Show resolved Hide resolved
@sneridagh sneridagh merged commit 47b27bf into main Jun 26, 2024
70 checks passed
@sneridagh sneridagh deleted the FritzHoing-improve-workflow branch June 26, 2024 14:02
sneridagh added a commit that referenced this pull request Jun 27, 2024
* main:
  Release 18.0.0-alpha.37
  Release @plone/types 1.0.0-alpha.17
  fix(teaser): reset button undefined when no target (#6121)
  (feat): Add loading visual and succes message in controlpanel when deleting users and groups (#6127)
  Upgrade `react-intl` to maximum 3.x series.  (#6128)
  Added three missing German translations. (#6124)
  Fritz hoing Github actions improvements (#6120)
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.

4 participants