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

Support installing a specific ddev version #13 #20

Merged
merged 4 commits into from
Nov 3, 2023

Conversation

deviantintegral
Copy link
Contributor

@deviantintegral deviantintegral commented Oct 28, 2023

The Issue

See #13 and jonaseberle/github-action-setup-ddev#15.

How This PR Solves The Issue

If version is specified, we pass that to apt and then hold the package so upgrades won't automatically upgrade it.

Manual Testing Instructions

    - name: Install ddev
      uses: deviantintegral/github-action-setup-ddev@set-ddev-version
      with:
        autostart: false
        version: 1.22.3

Automated Testing Overview

This adds a matrix to test both cases for version.

@deviantintegral deviantintegral marked this pull request as ready for review October 28, 2023 16:26
Comment on lines 21 to 25
if [[ ${{ matrix.version }} == '1.22.3' ]]; then
test $(ddev --version) == 'ddev version v1.22.3'
else
test $(ddev --version) != 'ddev version v1.22.3'
fi
Copy link
Member

Choose a reason for hiding this comment

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

This seems too fragile; can we do something less specific? What's the purpose of this exact stanza?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

When using latest as the ddev version, then the version will change over time. This basically checks that if the version is specified, it matches, and if not, it can never match (now that 1.22.4 is out).

I'm open to suggestions here!

Copy link
Collaborator

Choose a reason for hiding this comment

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

That looks good to me as a test.

@jonaseberle
Copy link
Collaborator

This looks and feels very good, thank you @deviantintegral!
Any objections to merge and release v1.9?

@deviantintegral
Copy link
Contributor Author

Not from me! We've been using this for nearly a week to work around https://github.com/orgs/ddev/discussions/5470.

@jonaseberle jonaseberle merged commit 3f54a5a into ddev:main Nov 3, 2023
5 checks passed
@jonaseberle
Copy link
Collaborator

v1.9.0 is released with this. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants