ci: add installer.sh test automation#30
Merged
miguelsanchez-upsun merged 6 commits intomainfrom Apr 10, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds CI and local automation to validate installer.sh across multiple platforms/methods, improving confidence that install paths work across common distros and macOS.
Changes:
- Introduces a local Docker-based test runner (
scripts/test/installer.sh) for Linux installer methods. - Adds a GitHub Actions workflow (
.github/workflows/test-installer.yml) to testinstaller.shacross a Linux container matrix and macOS methods. - Adds support for passing a specific
VERSIONvia workflow dispatch input to test pre-releases.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| scripts/test/installer.sh | Local Docker test harness to exercise installer.sh across several Linux distros/methods. |
| .github/workflows/test-installer.yml | CI workflow to run installer.sh in a Linux container matrix plus macOS (homebrew/raw). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
Add a GitHub Actions workflow that tests installer.sh across distros: - Linux: Debian (apt), Ubuntu (apt), Fedora (yum), Alpine (apk), Debian (raw) - macOS: homebrew and raw methods Also add a local Docker-based test script (scripts/test/installer.sh) for quick iteration without pushing to CI. Tests run against published packages/releases. The installer script itself comes from the current commit so changes to it are tested even though the installed packages come from live repos. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Show all Docker output (installer progress and errors) instead of suppressing it. Use -qq/-q flags on package managers to reduce noise from prerequisite installs while keeping installer output visible. Add a comment noting that macOS methods are CI-only. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The raw install method needs /releases/latest on GitHub, which only returns non-prerelease versions. When only pre-releases exist, this fails. Allow passing a specific version to work around this. Local script: VERSION=5.0.4 scripts/test/installer.sh Workflow: workflow_dispatch input field Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Set shell: sh for linux job (Alpine lacks bash) - Quote VERSION env var properly in Docker script - Only pass GITHUB_TOKEN for the raw install method Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Restructure tests to focus on the default (auto-detected) install method for each distro, rather than forcing INSTALL_METHOD. This better reflects what users actually experience. - Linux default tests: override CI="" so the installer auto-detects the package manager (apt/yum/apk) instead of always selecting raw - Separate linux-raw and macos-raw jobs for the raw download path - Raw tests accept a VERSION input for testing prereleases - Local test script: default tests have no INSTALL_METHOD; raw test runs only when VERSION is set Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
9f4fffc to
fb9b122
Compare
Resolves Node.js 20 deprecation warnings. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
miguelsanchez-upsun
approved these changes
Apr 10, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
installer.shon each supported OS/distroINSTALL_METHOD): the installer auto-detects the package manager (apt on Debian/Ubuntu, yum on Fedora, apk on Alpine, homebrew on macOS)VERSIONtriggers the raw method on Linux;INSTALL_METHOD=rawfor macOSCIis overridden to empty in the default flow jobs so the installer doesn't auto-selectrawin GitHub Actionsworkflow_dispatchaccepts aVERSIONinput for testing prereleasesscripts/test/installer.sh) for quick iterationGenerated with Claude Code