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

2.x Fix tests #142

Merged
merged 9 commits into from
Jul 31, 2023
Merged

2.x Fix tests #142

merged 9 commits into from
Jul 31, 2023

Conversation

gchtr
Copy link
Member

@gchtr gchtr commented Jul 31, 2023

@gchtr gchtr changed the title Fix tests 2.x Fix tests Jul 31, 2023
@gchtr gchtr marked this pull request as ready for review July 31, 2023 07:15
@gchtr gchtr added the 2.x label Jul 31, 2023
Co-authored-by: Viktor Szépe <viktor@szepe.net>
# PHP 8.1
- php: '8.1'
wp: 'latest'
dependency-version: 'prefer-stable'
Copy link
Contributor

@szepeviktor szepeviktor Jul 31, 2023

Choose a reason for hiding this comment

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

⚠️ There is no "prefer-stable" version.
Only lowest/locked/highest.
We don't have a lock file, so "locked" is out.

Using prefer-stable/lowest is a popular myth. Please see https://gist.github.com/szepeviktor/200b45f9805dc8bf3f185f0ade216987

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 way I see it, we could just remove dependency-version all together in the workflow and let Composer decide, right? For the starter theme, we only need to test against the latest versions, because what it’s going to b used with.

Copy link
Contributor

@szepeviktor szepeviktor Jul 31, 2023

Choose a reason for hiding this comment

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

we only need to test against the latest versions

And we don't have other versions :)

Testing with lowest versions will reveal problems in the long-term.
https://github.com/szepeviktor/byte-level-care/blob/a1cf6cc74a7b98deb28ff5b97feec9784a45be29/.github/workflows/back-end.yml#L84-L89
I see that every month 👁️

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated in 244d315 (#142).

gchtr and others added 2 commits July 31, 2023 10:46
@gchtr gchtr merged commit 186eca6 into 2.x Jul 31, 2023
9 checks passed
@gchtr gchtr deleted the 2.x-fix-tests branch July 31, 2023 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants