Add an install type homebrew for OS X runners#290
Open
Conversation
Signed-off-by: Lee Briggs <lee@leebriggs.co.uk>
There was a problem hiding this comment.
Pull request overview
Adds a Homebrew-based install path for macOS runners, with CI coverage to exercise both the Homebrew and “build from source” fallback flows.
Changes:
- Add macOS install logic that prefers Homebrew when available and matches the requested version; otherwise fall back to building from source.
- Start
tailscaledviabrew serviceswhen installed with Homebrew and skip caching for Homebrew-managed installs. - Add smoke/unit-style tests and update workflows to exercise both macOS install types and run local smoke tests in CI.
Reviewed changes
Copilot reviewed 5 out of 7 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
src/main.ts |
Implements Homebrew availability/version checks, Homebrew install path, and Homebrew service start logic; adjusts install return type for downstream decisions (cache/start). |
test/macos-homebrew.test.js |
Adds source/bundle string-match tests to assert the Homebrew logic is present in src/main.ts and the bundled action. |
package.json |
Adds test and test:smoke scripts (build + Node test runner). |
.github/workflows/test.yml |
Extends matrix with an explicit install-type and adds steps to resolve the Homebrew formula version / force the source path; verifies the chosen path. |
.github/workflows/smoke-test.yml |
Runs npm test (build + local smoke tests) instead of only building. |
dist/logout/index.js |
Re-bundled output update (generated artifact). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: Lee Briggs <lee@leebriggs.co.uk>
Signed-off-by: Lee Briggs <lee@leebriggs.co.uk>
Signed-off-by: Lee Briggs <lee@leebriggs.co.uk>
Signed-off-by: Lee Briggs <lee@leebriggs.co.uk>
Signed-off-by: Lee Briggs <lee@leebriggs.co.uk>
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.
Signed-off-by: Lee Briggs lee@leebriggs.co.uk