diff --git a/gotester/Dockerfile b/gotester/Dockerfile index da85dcb..cf84441 100644 --- a/gotester/Dockerfile +++ b/gotester/Dockerfile @@ -4,6 +4,7 @@ FROM golang:1.25-alpine # bash - shell scripts in CI steps # bc - floating-point coverage threshold comparison # curl - downloading tools (Atlas CLI) +# docker-cli - mock e2e tests that spin up containers (e.g. mockchimoney Redis) # git - Go modules, golangci-lint VCS checks # grep - GNU grep with -P (PCRE) for extracting coverage thresholds # make - mock service Makefiles @@ -12,6 +13,7 @@ RUN apk add --no-cache \ bash \ bc \ curl \ + docker-cli \ git \ grep \ make \ diff --git a/gotester/README.md b/gotester/README.md index ecd4996..1dc657a 100644 --- a/gotester/README.md +++ b/gotester/README.md @@ -9,6 +9,7 @@ Pre-built image for running Go unit tests, mock-service tests, and linting in th | Go | 1.25 | Compile and test Go code | | golangci-lint | 2.5.0 | Lint all Go packages | | Atlas CLI | 1.2.0 | Generate database test migrations | +| Docker CLI | — | Mock e2e tests that spin up containers (e.g. Redis) | | PostgreSQL 17 client | 17.x | `pg_isready` to wait for Postgres service containers | | GNU grep (PCRE) | — | Extract coverage thresholds with `-oP` | | bc | — | Floating-point coverage comparison | @@ -17,10 +18,11 @@ Pre-built image for running Go unit tests, mock-service tests, and linting in th ## Replaces -This single image replaces the tool-installation steps in two interledger-app workflow templates: +This single image replaces the tool-installation steps in three interledger-app workflow templates: - **`go-test-template.yml`** — `setup-go`, `Install Atlas CLI`, `pg_isready` wait loop - **`mock-tester.yml`** — `setup-go`, `golangci-lint-action`, Docker setup +- **`linting.yml`** — `setup-go`, `golangci-lint-action` ## Usage