• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

gsmlg-dev / elixir_caddy / eb88927107dfdf69a92549a441fe79f911bbbfec
54%

Build:
DEFAULT BRANCH: main
Ran 14 Jan 2026 10:43AM UTC
Jobs 4
Files 15
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

14 Jan 2026 10:43AM UTC coverage: 50.571% (-19.9%) from 70.447%
eb88927107dfdf69a92549a441fe79f911bbbfec

push

github

GSMLG-BOT
refactor: simplify config to text-first design

Replace complex struct-based configuration (27+ modules, 5000+ LOC) with
simple text-based Caddyfile storage. Configuration now stores raw Caddyfile
text directly in a 3-field struct {bin, caddyfile, env}.

Breaking changes:
- Remove Caddy.Config.Global, Site, Snippet, and all matcher modules
- Remove Caddy.Caddyfile protocol
- Old API (set_global, set_site, set_snippet) replaced with set_caddyfile
- Config validation delegated to Caddy binary via adapt() command

Benefits:
- 85% code reduction (5000+ LOC → 700 LOC)
- Users write native Caddyfile syntax directly
- No impedance mismatch between Elixir code and Caddy format
- Simpler to understand and maintain
- All 88 tests passing

New API:
  Caddy.set_caddyfile(text)  # Set raw Caddyfile
  Caddy.get_caddyfile()      # Get raw Caddyfile
  Caddy.append_caddyfile(text)  # Append to Caddyfile
  Caddy.adapt(text)          # Validate syntax via Caddy binary

44 of 75 new or added lines in 4 files covered. (58.67%)

2 existing lines in 2 files now uncovered.

310 of 613 relevant lines covered (50.57%)

8.83 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
47.96
0.0% lib/caddy/server.ex
7
17.65
0.0% lib/caddy.ex
7
46.25
4.58% lib/caddy/config_provider.ex
16
70.64
3.11% lib/caddy/config.ex

Uncovered Existing Lines

Lines Coverage ∆ File
1
46.25
4.58% lib/caddy/config_provider.ex
1
17.65
0.0% lib/caddy.ex
Jobs
ID Job ID Ran Files Coverage
1 eb88927107dfdf69a92549a441fe79f911bbbfec.1 14 Jan 2026 10:43AM UTC 15
50.57
GitHub Action Run
2 eb88927107dfdf69a92549a441fe79f911bbbfec.2 14 Jan 2026 10:43AM UTC 15
50.57
GitHub Action Run
3 eb88927107dfdf69a92549a441fe79f911bbbfec.3 14 Jan 2026 10:43AM UTC 15
50.57
GitHub Action Run
4 eb88927107dfdf69a92549a441fe79f911bbbfec.4 14 Jan 2026 10:43AM UTC 15
50.57
GitHub Action Run
Source Files on build eb88927107dfdf69a92549a441fe79f911bbbfec
  • Tree
  • List 15
  • Changed 6
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • eb889271 on github
  • Prev Build on main (#7EA35099...)
  • Next Build on main (#B8CE4EA3...)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc