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

FIX Update getInstallerVersion #6

Merged

Conversation

emteknetnz
Copy link
Member

@emteknetnz emteknetnz commented Jun 30, 2022

Issue silverstripe/gha-ci#11

Updating the logic in getInstallerVersion() so that the correct version is returned

Example failure

PHP Warning: Undefined array key "4.10/module-standards" in /home/runner/work/_actions/silverstripe/gha-generate-matrix/v1/job_creator.php on line 39

Also a slight refactor to allow adding unit tests for the yaml parsing

@emteknetnz emteknetnz force-pushed the pulls/1.1/branch-on-push branch 7 times, most recently from 4936d41 to 54cc5af Compare June 30, 2022 05:50
@GuySartorelli
Copy link
Member

Can you please add some details to the PR description about what is actually being fixed or updated with this PR?

@emteknetnz
Copy link
Member Author

Updated

Copy link
Member

@GuySartorelli GuySartorelli left a comment

Choose a reason for hiding this comment

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

Depending on the decision around having release branches for the minor release process we'll probably also need some extra explicit logic (most likely just str_replace to remove the release suffix) for PRs on release branches.

job_creator.php Outdated Show resolved Hide resolved
job_creator.php Outdated Show resolved Hide resolved
tests/JobCreatorTest.php Outdated Show resolved Hide resolved
}
// use the latest minor version of installer
Copy link
Member

Choose a reason for hiding this comment

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

The only situation where this isn't ideal is prefer-lowest won't actually be testing the lowest version of framework according to the constraint in composer.json.... but we can probably live with that.

tests/JobCreatorTest.php Outdated Show resolved Hide resolved
@emteknetnz emteknetnz force-pushed the pulls/1.1/branch-on-push branch 2 times, most recently from 0f8ca86 to 1f056fc Compare June 30, 2022 23:05
@emteknetnz
Copy link
Member Author

@GuySartorelli have made requested changes

@emteknetnz emteknetnz force-pushed the pulls/1.1/branch-on-push branch from 1f056fc to 9ce493f Compare June 30, 2022 23:11
Copy link
Member

@GuySartorelli GuySartorelli left a comment

Choose a reason for hiding this comment

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

Merge on green
Edit: lol it went green as soon as I said this

@GuySartorelli GuySartorelli merged commit 8081a29 into silverstripe:1.1 Jun 30, 2022
@GuySartorelli GuySartorelli deleted the pulls/1.1/branch-on-push branch June 30, 2022 23:12
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.

2 participants