feat: Add setup-jq#69
Merged
Merged
Conversation
Signed-off-by: Roger Barker <roger.barker@swirldslabs.com>
Signed-off-by: Roger Barker <roger.barker@swirldslabs.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Adds opt-in jq installation (setup-jq, jq-version) to the composite action for Linux (apt) and macOS (brew) runners, updates the README, and adds verification/test jobs. It also "cleans" the existing gomplate step by removing its env: indirection and inlining ${{ inputs.gomplate-version }} directly into the bash script.
Changes:
- New
setup-jq/jq-versioninputs and install logic inaction.yml, plus documentation inREADME.md. - New CI jobs
test-setup-jqandtest-setup-jq-custom-version, and addedjq(andtask) verification to the existingtest-alljob. - Replaced env-var indirection in the gomplate setup steps with direct
${{ inputs.* }}interpolation in bash.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| action.yml | Adds setup-jq/jq-version inputs and install steps; reverts gomplate steps to inline ${{ inputs.* }} in bash. |
| README.md | Documents the new jq inputs and behavior. |
| .github/workflows/test.yml | Enables jq in the all-features job and adds default/custom-version jq test jobs. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: Roger Barker <roger.barker@swirldslabs.com>
Signed-off-by: Roger Barker <roger.barker@swirldslabs.com>
Signed-off-by: Roger Barker <roger.barker@swirldslabs.com>
brew/apt Signed-off-by: Roger Barker <roger.barker@swirldslabs.com>
Signed-off-by: Roger Barker <roger.barker@swirldslabs.com>
andrewb1269
approved these changes
May 28, 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.
Description
This pull request adds support for installing and configuring the
jqcommand-line tool in the GitHub Actions workflow. It introduces new inputs to controljqinstallation and version, updates documentation, and adds tests to verify the setup. These changes make it easier to ensure a specific version ofjqis available in CI jobs.New jq setup feature:
setup-jqandjq-versioninputs toaction.yml, allowing users to opt-in to installingjqand specify its version (defaulting to 1.8.1). The installation is supported on Linux and macOS foramd64andarm64, with SHA256 verification. (action.yml[1] [2]jqversion. (action.ymlaction.ymlR485-R542)Documentation updates:
README.mdto document the newjqsetup options, including usage notes and a table describing the new inputs. (README.md[1] [2]Workflow and test improvements:
.github/workflows/test.ymlto supportsetup-jqin the main test job and added two new jobs: one to test defaultjqsetup and another to test installing a customjqversion. (.github/workflows/test.yml[1] [2]jqis installed and reports the expected version. (.github/workflows/test.yml.github/workflows/test.ymlR121-R126)These changes provide robust, configurable support for
jqin CI pipelines, improving developer experience and build reproducibility.Related Issue(s)