Skip to content

GH Actions: test workflow improvements #142

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

Merged
merged 2 commits into from
Dec 9, 2023

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Dec 9, 2023

Description

GH Actions: split PHAR building task off to own script

While it is still a good idea to make sure the PHAR building script works on all supported PHP versions, it is not necessary to run this task against all PHP versions on all pushes, nor to have the test runs wait until all PHAR building builds are done, as for the tests we only need the PHARs generated on PHP 8.0, which are the ones used in a release.

This commit splits the PHAR building job off to its own script, only keeping the PHAR build against PHP 8.0 in the test workflow.

While this does mean there is now some duplication in the scripts, I find it more relevant to make the builds faster.

GH Actions: introduce a quicktest workflow

... which runs only against low/medium/high PHP versions and does not run:

  • the tests using custom PHP ini settings
  • the tests related to sniffs using external JS/CSS tooling
  • test CS check (integration test) using the PHAR

This quick test workflow will now run on pushes to all branches except master. For pushes to master, the full test build will still be run.

In the fast majority of cases, this quicktest will already surface any issues and it saves a lot of resources when the same builds don't run twice for every PR.

Suggested changelog entry

N/A

@jrfnl jrfnl added this to the 3.x Next milestone Dec 9, 2023
jrfnl added 2 commits December 9, 2023 05:57
While it is still a good idea to make sure the PHAR building script works on all supported PHP versions, it is not necessary to run this task against all PHP versions on all pushes, nor to have the test runs wait until all PHAR building builds are done, as for the tests we only need the PHARs generated on PHP 8.0, which are the ones used in a release.

This commit splits the PHAR building job off to its own script, only keeping the PHAR build against PHP 8.0 in the `test` workflow.

While this does mean there is now some duplication in the scripts, I find it more relevant to make the builds faster.
... which runs only against low/medium/high PHP versions and does not run:
- the tests using custom PHP ini settings
- the tests related to sniffs using external JS/CSS tooling
- test CS check (integration test) using the PHAR

This quick test workflow will now run on pushes to all branches except `master`. For pushes to `master`, the full test build will still be run.

In the fast majority of cases, this quicktest will already surface any issues and it saves a lot of resources when the same builds don't run twice for every PR.
@jrfnl jrfnl force-pushed the feature/ghactions-test-workflow-improvements branch from c1a0772 to fb7390e Compare December 9, 2023 04:57
@jrfnl jrfnl merged commit e844821 into master Dec 9, 2023
@jrfnl jrfnl deleted the feature/ghactions-test-workflow-improvements branch December 9, 2023 05:02
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.

1 participant