diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f89ae1788..6ecbecd9f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -253,9 +253,11 @@ jobs: env: TEST_DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres?sslmode=disable # A disposable server for the database tests, and for the browser suite. + # Pushes to main run no test, so they start no service: GitHub skips a + # service whose image is empty. services: postgres: &postgres - image: postgres:18-bookworm + image: ${{ github.event_name != 'push' && 'postgres:18-bookworm' || '' }} env: POSTGRES_PASSWORD: postgres ports: ['5432:5432'] @@ -306,9 +308,9 @@ jobs: services: postgres: *postgres # Receives auth's email over plain SMTP on the loopback address, and lets - # the suite read it from its API. + # the suite read it from its API. Not started on main, like Postgres. mailpit: - image: axllent/mailpit:v1.27 + image: ${{ github.event_name != 'push' && 'axllent/mailpit:v1.27' || '' }} ports: ['1025:1025', '8025:8025'] env: E2E_AUTH_URL: https://localhost:3443 diff --git a/docs/dev/testing.md b/docs/dev/testing.md index 796851f56..c5ba88343 100644 --- a/docs/dev/testing.md +++ b/docs/dev/testing.md @@ -237,7 +237,7 @@ merge queue start from, since GitHub lets every branch read `main`'s caches: rustdoc, and compiles the doc tests without running them. `rust` runs `just coverage-build` and `just db check`, `e2e` builds the binaries without starting the browser suite, and `infra` installs piquelctl without checking - the manifests. + the manifests. `rust` and `e2e` start no Postgres or Mailpit. A commit's coverage report is in its merge queue run.