forked from datacharmer/dbdeployer
-
Notifications
You must be signed in to change notification settings - Fork 2
ci: add install script test workflow #83
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
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| name: Install Script Test | ||
|
|
||
| # Tests the documented installation flow: | ||
| # curl -s https://raw.githubusercontent.com/ProxySQL/dbdeployer/master/scripts/dbdeployer-install.sh | bash | ||
| # | ||
| # This catches release-asset mismatches (wrong file naming, missing | ||
| # checksums.txt, missing tarballs) that would break the install script | ||
| # for end users. Runs automatically after a release is published, on a | ||
| # weekly schedule, and on manual dispatch. | ||
| # | ||
| # Security note: this workflow uses no user-controlled inputs (issue | ||
| # bodies, PR titles, commit messages, etc.). The matrix values are | ||
| # hardcoded here and matrix.os is safe to interpolate. | ||
|
|
||
| on: | ||
| release: | ||
| types: [published] | ||
| workflow_dispatch: | ||
| schedule: | ||
| - cron: '0 4 * * 1' | ||
|
|
||
| jobs: | ||
| install-script: | ||
| name: Install on ${{ matrix.os }} | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: [ubuntu-22.04, ubuntu-24.04, macos-13, macos-14] | ||
| runs-on: ${{ matrix.os }} | ||
| steps: | ||
| - name: Prepare a PATH directory the install script will accept | ||
| run: | | ||
| mkdir -p "$HOME/bin" | ||
| echo "$HOME/bin" >> "$GITHUB_PATH" | ||
|
|
||
| - name: Run the documented install command | ||
| run: | | ||
| curl -s https://raw.githubusercontent.com/ProxySQL/dbdeployer/master/scripts/dbdeployer-install.sh | bash | ||
|
|
||
| - name: Verify dbdeployer runs and version matches common/VERSION | ||
| run: | | ||
| which dbdeployer | ||
| dbdeployer --version | ||
| INSTALLED_VERSION=$(dbdeployer --version | awk '{print $NF}') | ||
| EXPECTED_VERSION=$(curl -s https://raw.githubusercontent.com/ProxySQL/dbdeployer/master/common/VERSION) | ||
| echo "Installed: $INSTALLED_VERSION" | ||
| echo "Expected: $EXPECTED_VERSION" | ||
| [ "$INSTALLED_VERSION" = "$EXPECTED_VERSION" ] || { | ||
| echo "FAIL: installed version does not match common/VERSION" | ||
| exit 1 | ||
| } | ||
|
|
||
| - name: Smoke test basic commands | ||
| run: | | ||
| dbdeployer --help > /dev/null | ||
| dbdeployer versions > /dev/null || true | ||
| dbdeployer defaults show > /dev/null | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🌐 Web query:
GitHub Actions macos-13 runner deprecation 2026💡 Result:
macos-13(andmacos-13-large,macos-13-xlarge) was retired on December 4, 2025—so in 2026 it’s already deprecated/removed. GitHub also ran “brownout” periods in November 2025 wheremacos-13jobs temporarily failed to drive migration. [1]What to use instead (GitHub-hosted):
macos-15/macos-latest, ormacos-14(and their xlarge variants). [1]macos-15-intel(ormacos-14-large,macos-15-large/macos-latest-large). [1]Note on Intel macOS runners: GitHub says it will drop support for macOS x86_64 after the macOS 15 runner image is retired (Fall 2027), so plan to move to arm64. [1]
Source
Replace
macos-13runner—it was retired December 4, 2025.The
macos-13runner is no longer available in GitHub Actions and will cause workflow failures. Usemacos-14ormacos-15instead (ormacos-15-intelif Intel x86_64 is required).🧰 Tools
🪛 actionlint (1.7.12)
[error] 28-28: label "macos-13" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2025", "windows-2025-vs2026", "windows-2022", "windows-11-arm", "ubuntu-slim", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-24.04-arm", "ubuntu-22.04", "ubuntu-22.04-arm", "macos-latest", "macos-latest-xlarge", "macos-latest-large", "macos-26-intel", "macos-26-xlarge", "macos-26-large", "macos-26", "macos-15-intel", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xlarge", "macos-14-large", "macos-14", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file
(runner-label)
🤖 Prompt for AI Agents