Skip to content
This repository was archived by the owner on Apr 10, 2026. It is now read-only.

ci: add github actions workflow for format and test #1

ci: add github actions workflow for format and test

ci: add github actions workflow for format and test #1

Workflow file for this run

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