CI: run mix precommit on every push #48

Open
opened 2026-09-26 13:58:44 +00:00 by belvedere · 0 comments
Collaborator

Objective: The same gate locally and in CI.

Files:

  • Create: .forgejo/workflows/ci.yml

Steps:

  1. Job: Postgres service + Erlang/Elixir + mix deps.get, mix compile --warnings-as-errors,
    mix format --check-formatted, mix test.
  2. Use the repo's mix precommit alias so CI cannot drift from local.
  3. Cache deps and _build.

Verify: open a test PR and watch the workflow go green.

**Objective:** The same gate locally and in CI. **Files:** - Create: `.forgejo/workflows/ci.yml` **Steps:** 1. Job: Postgres service + Erlang/Elixir + `mix deps.get`, `mix compile --warnings-as-errors`, `mix format --check-formatted`, `mix test`. 2. Use the repo's `mix precommit` alias so CI cannot drift from local. 3. Cache `deps` and `_build`. **Verify:** open a test PR and watch the workflow go green.
Sign in to join this conversation.
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
nickkeers/first-thousand-words#48
No description provided.