This repository was archived by the owner on Sep 3, 2026. It is now read-only.
feat(event-log): persist domain events #30
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: ci | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup BEAM | |
| uses: erlef/setup-beam@v1 | |
| with: | |
| otp-version: '28.0' | |
| gleam-version: '1.15.4' | |
| rebar3-version: '3' | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Install UI dependencies | |
| run: bun install --cwd ui --frozen-lockfile | |
| - name: Format check | |
| run: gleam format --check src test | |
| - name: Guard deprecated patterns | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| if rg -n 'should\.equal|io\.debug' src test; then | |
| echo 'Deprecated Gleam test/debug pattern found' | |
| exit 1 | |
| fi | |
| if rg -n '\btodo\b' src; then | |
| echo 'Raw todo found in src/' | |
| exit 1 | |
| fi | |
| - name: Type check | |
| run: gleam check | |
| - name: UI smoke | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| cd ui | |
| gleam format --check src test | |
| gleam check | |
| gleam test | |
| bun run build | |
| - name: Guard UI list append in render path | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| if rg -n 'list\.append' ui/src/lummy_agent_ui/view.gleam ui/src/lummy_agent_ui/update.gleam; then | |
| echo 'Render-path list.append found; use cons + reverse instead' | |
| exit 1 | |
| fi | |
| - name: Test | |
| run: gleam test |