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

Automatically update wp-cli.md #2370

Merged
merged 11 commits into from
Oct 7, 2021
Merged

Automatically update wp-cli.md #2370

merged 11 commits into from
Oct 7, 2021

Conversation

felipeelia
Copy link
Member

Description of the Change

Based on the work made for #2369, this PR is an attempt to automate the process.

@felipeelia felipeelia self-assigned this Sep 25, 2021
@felipeelia felipeelia modified the milestones: 3.6.3, 3.6.4 Sep 28, 2021
Copy link
Member

@jeffpaul jeffpaul left a comment

Choose a reason for hiding this comment

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

Main question is if you really want to update the docs off develop or not.

- master
pull_request:
branches:
- develop
Copy link
Member

Choose a reason for hiding this comment

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

We purposely do not update the docs off changes to develop as those items are not yet in a released version and thus the docs would conflict with whats actually in the plugin. You might consider removing this unless there's a precise reason to keep it?

Copy link
Member Author

Choose a reason for hiding this comment

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

The only reason why I added that was to generate the artifact after creating the PR, I don't think there is any reason why we should update these docs when things are merged to develop. I'll push a commit shortly with what I think should be the "final" version of the action.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done @jeffpaul. 5aa65ab contains the version that I'd consider ideal to be merged. Thanks!

Copy link
Member

Choose a reason for hiding this comment

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

@felipeelia looks like that change dropped develop and the generating of the ZIP artifact yeah?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yup @jeffpaul.

- Remove executions on PRs
- Remove artifact creation
- Uncomment deployment to GH Pages
Comment on lines +17 to +23
- name: Set PHP version
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
coverage: none
tools: prestissimo, composer:v1
ini-values: memory_limit=3G
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't see the usage of composer in this workflow, and PHP 7.4 is shipped with ubuntu-latest. I'm wondering if we can remove this section?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good points @dinhtungdu!

  1. Composer is used by the wp package install command: https://github.com/wp-cli/package-command
  2. GH Actions have both PHP 7.4 and 8.0 available at this point. I think it will already use 8.0 by default but even if it is still using 7.4 it is just a matter of time to have 8.0 as the default. I'd rather force 7.4 until we are all sure EP is fully compatible with that version than risking it breaking. Also, we need that memory_limit=3G anyway because the package install command is a huge memory consumer.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks, then this is looking good to me! Note that I assume the cli-command-docs works as expected.

@jeffpaul
Copy link
Member

jeffpaul commented Oct 5, 2021

:shipit:

@felipeelia felipeelia merged commit 1d6f1a6 into develop Oct 7, 2021
@felipeelia felipeelia deleted the docs/automatic-wp-cli.md branch October 7, 2021 18:23
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.

3 participants