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

Update our GitHub Action Workflows #810

Open
wants to merge 13 commits into
base: develop
Choose a base branch
from

Conversation

dkotter
Copy link
Collaborator

@dkotter dkotter commented Sep 27, 2024

Description of the Change

This PR brings various updates to our GitHub Action Workflows:

  • Update all Actions we rely on to their latest versions
  • Separate our linting actions into their own files, one for eslint and one for PHPCS and VIPCS
  • Ensure certain actions only run when needed. For instance, only run eslint if JS or json files have changed; only run PHPCS/VIPCS and PHPStan if PHP files have changed
  • Add workflow for PHPCompat and fix a few issues it was flagging for PHP 8.4
  • Minor formatting and text tweaks

How to test the Change

Ensure all Actions run properly on this PR

Changelog Entry

Developer - Update GitHub Action Workflows to be more efficient and be up to date

Credits

Props @dkotter

Checklist:

@dkotter dkotter added this to the 3.2.0 milestone Sep 27, 2024
@dkotter dkotter self-assigned this Sep 27, 2024
@dkotter dkotter marked this pull request as ready for review September 27, 2024 16:21
@dkotter dkotter requested review from jeffpaul and a team as code owners September 27, 2024 16:21
@github-actions github-actions bot added the needs:code-review This requires code review. label Sep 27, 2024
@@ -31,6 +32,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ${{github.workspace}}/classifai.zip
asset_path: ${{ github.workspace }}/classifai.zip
Copy link
Member

Choose a reason for hiding this comment

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

lol is it this spacing that was breaking releases not including the classifai.zip file?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I doubt it but I guess we'll see 🤷🏻

@@ -18,6 +19,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: WordPress version checker
uses: skaut/wordpress-version-checker@v2.0.0
uses: skaut/wordpress-version-checker@v2.2.1
Copy link
Member

Choose a reason for hiding this comment

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

any reason to just truncate that to v2 and get all minor updates along the way?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I initially tried that but there isn't a valid v2 release to make that work. If you try to go to https://github.com/skaut/wordpress-version-checker/tree/v2/ it will 404, so the only thing I could get to work was the specific release number

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.

Workflow file updates look good to me, will defer to @10up/open-source-practice for someone to validate the includes file changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs:code-review This requires code review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants