{
  "name": "run-shell-tests",
  "title": "Run a test command",
  "description": "Run a test command in a working directory on a generic Node 24 image. Swap the image for a different toolchain.",
  "category": "CI/CD",
  "tags": [
    "ci-cd",
    "node"
  ],
  "latestVersion": "1.0.2",
  "versions": [
    "1.0.2",
    "1.0.1",
    "1.0.0"
  ],
  "parameters": [
    "test-command",
    "work-dir"
  ],
  "images": [
    "node@sha256:c6ad9e9c1d80f6eb607c26b4b0a132ff7a2344fad1c78ea3baa2a7d4c8de6d94"
  ],
  "url": "https://catalog.dagweave.com/api/v1/items/run-shell-tests.json",
  "templateUrl": "https://catalog.dagweave.com/api/v1/items/run-shell-tests/latest/template.yaml",
  "page": "https://catalog.dagweave.com/items/run-shell-tests/",
  "entrypoint": "test",
  "parameterDetails": [
    {
      "name": "test-command",
      "title": "Test command",
      "description": "The test command to run. Runs on Node 24 (node:24-alpine).",
      "type": "string",
      "required": true,
      "example": "npm ci \u0026\u0026 npm test"
    },
    {
      "name": "work-dir",
      "title": "Working directory",
      "description": "Directory to run the test command in (the checked-out repo root).",
      "type": "string",
      "required": false,
      "default": "."
    }
  ],
  "imageDetails": [
    {
      "ref": "node@sha256:c6ad9e9c1d80f6eb607c26b4b0a132ff7a2344fad1c78ea3baa2a7d4c8de6d94",
      "repository": "node",
      "digest": "sha256:c6ad9e9c1d80f6eb607c26b4b0a132ff7a2344fad1c78ea3baa2a7d4c8de6d94"
    }
  ],
  "versionDetails": [
    {
      "version": "1.0.2",
      "date": "2026-09-12",
      "notes": "Repin node:24-alpine to the digest the tag now points at. The old pin had fallen behind its tag, which the CVE gate reads as an OS record whose reason is spent. The new bytes carry the same openssl advisory and the same four npm advisories as the old ones, so a test command sees the same Node 24.",
      "latest": true,
      "installable": true,
      "url": "https://catalog.dagweave.com/api/v1/items/run-shell-tests/1.0.2.json",
      "templateUrl": "https://catalog.dagweave.com/api/v1/items/run-shell-tests/1.0.2/template.yaml"
    },
    {
      "version": "1.0.1",
      "date": "2026-08-02",
      "notes": "Move node from 20-alpine to 24-alpine. Fixable CRITICAL/HIGH drops from 18 to 5. This crosses majors: Node 20 left maintenance and no 20.x rebuild carries the fixes, so a test command that relies on Node 20 behaviour needs rechecking.",
      "latest": false,
      "installable": false,
      "url": "https://catalog.dagweave.com/api/v1/items/run-shell-tests/1.0.1.json"
    },
    {
      "version": "1.0.0",
      "date": "2026-07-17",
      "notes": "Initial release.",
      "latest": false,
      "installable": false,
      "url": "https://catalog.dagweave.com/api/v1/items/run-shell-tests/1.0.0.json"
    }
  ],
  "source": "https://github.com/dagweave/catalog/tree/67458f74dbbf913b03177f3cefc69424be85eb1d/catalog/run-shell-tests",
  "catalogSha": "67458f74dbbf913b03177f3cefc69424be85eb1d"
}
