Skip to content

feat: Add setup-jq#69

Merged
rbarker-dev merged 7 commits into
mainfrom
00068-add-setup-jq
May 28, 2026
Merged

feat: Add setup-jq#69
rbarker-dev merged 7 commits into
mainfrom
00068-add-setup-jq

Conversation

@rbarker-dev
Copy link
Copy Markdown
Contributor

@rbarker-dev rbarker-dev commented May 28, 2026

Description

This pull request adds support for installing and configuring the jq command-line tool in the GitHub Actions workflow. It introduces new inputs to control jq installation and version, updates documentation, and adds tests to verify the setup. These changes make it easier to ensure a specific version of jq is available in CI jobs.

New jq setup feature:

  • Added setup-jq and jq-version inputs to action.yml, allowing users to opt-in to installing jq and specify its version (defaulting to 1.8.1). The installation is supported on Linux and macOS for amd64 and arm64, with SHA256 verification. (action.yml [1] [2]
  • Implemented logic in the composite action to download, verify, and install the requested jq version. (action.yml action.ymlR485-R542)

Documentation updates:

  • Updated README.md to document the new jq setup options, including usage notes and a table describing the new inputs. (README.md [1] [2]

Workflow and test improvements:

  • Modified .github/workflows/test.yml to support setup-jq in the main test job and added two new jobs: one to test default jq setup and another to test installing a custom jq version. (.github/workflows/test.yml [1] [2]
  • Enhanced the workflow verification steps to confirm that jq is installed and reports the expected version. (.github/workflows/test.yml .github/workflows/test.ymlR121-R126)

These changes provide robust, configurable support for jq in CI pipelines, improving developer experience and build reproducibility.

Related Issue(s)

Signed-off-by: Roger Barker <roger.barker@swirldslabs.com>
Signed-off-by: Roger Barker <roger.barker@swirldslabs.com>
@rbarker-dev rbarker-dev self-assigned this May 28, 2026
Copilot AI review requested due to automatic review settings May 28, 2026 16:24
@rbarker-dev rbarker-dev added the feature New Feature label May 28, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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-version inputs and install logic in action.yml, plus documentation in README.md.
  • New CI jobs test-setup-jq and test-setup-jq-custom-version, and added jq (and task) verification to the existing test-all job.
  • 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.

Comment thread action.yml Outdated
Comment thread action.yml Outdated
Comment thread action.yml Outdated
Comment thread .github/workflows/test.yml Outdated
Comment thread action.yml Outdated
Signed-off-by: Roger Barker <roger.barker@swirldslabs.com>
Signed-off-by: Roger Barker <roger.barker@swirldslabs.com>
@rbarker-dev rbarker-dev requested a review from Copilot May 28, 2026 16:48
@rbarker-dev rbarker-dev changed the title feat: Add setup-jq and clean setup-gomplate feat: Add setup-jq May 28, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

Comment thread action.yml
Comment thread action.yml
Comment thread action.yml
Comment thread .github/workflows/test.yml
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>
@rbarker-dev rbarker-dev merged commit 3be139d into main May 28, 2026
17 checks passed
@rbarker-dev rbarker-dev deleted the 00068-add-setup-jq branch May 28, 2026 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New Feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add setup JQ step

3 participants