This repository was archived by the owner on Apr 10, 2026. It is now read-only.
CI: add GitHub Actions validation workflow #2
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: | |
| branches: | |
| - main | |
| - "codex/**" | |
| pull_request: | |
| concurrency: | |
| group: ci-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| name: Format and Test | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| env: | |
| MIX_ENV: test | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Elixir and Erlang | |
| uses: erlef/setup-beam@v1 | |
| with: | |
| version-file: .tool-versions | |
| - name: Restore Mix cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| deps | |
| _build | |
| key: ${{ runner.os }}-mix-${{ hashFiles('mix.lock') }}-${{ hashFiles('.tool-versions') }} | |
| restore-keys: | | |
| ${{ runner.os }}-mix-${{ hashFiles('mix.lock') }}- | |
| ${{ runner.os }}-mix- | |
| - name: Install dependencies | |
| run: mix deps.get | |
| - name: Compile | |
| run: mix compile --warnings-as-errors | |
| - name: Check formatting | |
| run: mix format --check-formatted | |
| - name: Run tests | |
| run: mix test --no-color |