install-jq/tests/unit
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Daniel Carbone a9c73932fe
docs+tests: prepare v4 release
- Update README: fix jq project link to jqlang/jq, update version matrix
  with correct repo URLs per series (jqlang for 1.7+, stedolan for legacy),
  update example action ref @v3 → @v4, add Security section describing
  SHA-256 checksum verification and curl hardening introduced in v4.
- Fix example-windows.yaml: workflow name was 'Setup jq Example - Linux'.
- Update @v3 → @v4 in all three example workflow files.
- Add tests/unit/test-version-validation.sh: 30 unit tests covering the
  version-string regex used by all four install scripts (valid strings,
  empty, path traversal, malformed, flags, whitespace, etc.).
- Add tests/unit/test-arch-mapping.sh: 22 unit tests covering the
  RUNNER_ARCH → jq arch mapping in unixish-17.sh.
- Add .github/workflows/unit-tests.yaml: runs both unit-test scripts on
  ubuntu-22.04, ubuntu-24.04, macos-14, macos-15, and macos-26.
- Add test-invalid-version job to tests.yaml: verifies all four install
  scripts exit non-zero for a set of malformed/malicious version strings,
  covering Linux, macOS, and Windows runners.
- Extend tests.yaml push paths to include tests/unit/**.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-24 13:39:00 -05:00
..
test-arch-mapping.sh docs+tests: prepare v4 release 2026-06-24 13:39:00 -05:00
test-version-validation.sh docs+tests: prepare v4 release 2026-06-24 13:39:00 -05:00