Skip to content

ci(l1): add CI workflow for web frontend#59

Merged
ilitteri merged 5 commits into
mainfrom
ci/add-elixir-workflow
Feb 17, 2026
Merged

ci(l1): add CI workflow for web frontend#59
ilitteri merged 5 commits into
mainfrom
ci/add-elixir-workflow

Conversation

@ilitteri

Copy link
Copy Markdown
Collaborator

Motivation

The Elixir/Phoenix web frontend (ethrex_replay_web/) had no CI coverage. This adds automated testing and linting to catch issues before they reach main.

Description

Adds a new GitHub Actions workflow (.github/workflows/pr-elixir.yaml) that runs on:

  • Pull requests to any branch when ethrex_replay_web/ is modified
  • Pushes to main when ethrex_replay_web/ is modified

The workflow includes two jobs:

Lint job:

  • Format check (mix format --check-formatted)
  • Compile with warnings as errors
  • Check for unused dependencies

Test job:

  • Runs the full test suite (mix test)

Both jobs cache dependencies and build artifacts for faster runs.

How to Test

  1. Modify any file in ethrex_replay_web/
  2. Open a PR
  3. Verify the "Elixir CI" workflow runs with both Lint and Test jobs

Checklist

  • CI workflow triggers on correct paths
  • Linting covers format, compilation, and unused deps
  • Tests run with proper database setup (mix test alias handles ecto.create/migrate)
  • Dependencies are cached

The workflow runs on PRs and pushes to main when ethrex_replay_web/ is modified.
It includes two jobs:
- Lint: format check, compile with warnings-as-errors, unused deps check
- Test: runs the mix test suite

Dependencies and build artifacts are cached for faster subsequent runs.
Copilot AI review requested due to automatic review settings January 20, 2026 23:41
@github-actions github-actions Bot added the L1 label Jan 20, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds comprehensive CI coverage for the Elixir/Phoenix web frontend that previously had no automated testing or linting in the CI pipeline.

Changes:

  • New GitHub Actions workflow for Elixir CI with lint and test jobs
  • Automated format checking, compilation validation, and dependency auditing
  • Full test suite execution with dependency caching for performance

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ilitteri ilitteri merged commit 08d44c0 into main Feb 17, 2026
21 checks passed
@ilitteri ilitteri deleted the ci/add-elixir-workflow branch February 17, 2026 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants