Skip to content

Run integration tests with GitHub Actions instead of Earthly - #761

Merged
josevalim merged 1 commit into
masterfrom
ci-without-earthly
Nov 21, 2026
Merged

josevalim merged 1 commit into
masterfrom
ci-without-earthly

Conversation

@josevalim

@josevalim josevalim commented Nov 21, 2026 •

Copy link
Copy Markdown
Member

Same change as elixir-ecto/ecto#4819. Earthly has been failing in Ecto's CI while loading database images into Docker-in-Docker (archive/tar: invalid tar header), so this moves the integration tests to plain GitHub Actions, keeping the same matrix:

  • Postgres (16.2, 11.11, 9.6, plus pool count 4 on 16.2) runs as a service container
  • MySQL (5.7, 8.0) is started with docker run, because it needs the custom --sql_mode and --default-authentication-plugin server flags, which service containers cannot pass
  • MSSQL (2019, 2022) runs as a service container. A step waits until sqlcmd inside the container answers
  • Elixir/OTP come from erlef/setup-beam, at the same 1.15.6 / 25.3.2.6 as before
  • The structure dump/load tests use the runner's preinstalled pg_dump/psql and mysqldump/mysql clients. ~/.my.cnf disables column-statistics so that the MySQL 8 mysqldump works against 5.7

The Earthfile is removed, and the README now shows how to start the databases with Docker instead.

Integration tests now run directly on the runner, against service
containers for PostgreSQL and MSSQL and a docker container for MySQL,
which requires custom server flags.

Claude-Session: https://claude.ai/code/session_01KktWa1qtPDZWAyxdMeHkhj
@josevalim
josevalim merged commit db2401b into master Nov 21, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant