chore: add github actions
All checks were successful
Code Format / format (push) Successful in 1m24s
Run tests / test (push) Successful in 1m26s

This commit is contained in:
2025-09-09 13:31:55 +02:00
parent e2ceb131f3
commit e4ff82909c
2 changed files with 43 additions and 0 deletions

20
.github/workflows/code-format.yaml vendored Normal file
View File

@@ -0,0 +1,20 @@
name: Code Format
on:
push:
jobs:
format:
runs-on: ubuntu-22.04
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Install elixir
uses: erlef/setup-beam@v1
with:
otp-version: '28'
elixir-version: '1.18'
- name: Check format
run: mix format --check-formatted

23
.github/workflows/run-tests.yaml vendored Normal file
View File

@@ -0,0 +1,23 @@
name: Run tests
on:
push:
jobs:
test:
runs-on: ubuntu-22.04
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Install elixir
uses: erlef/setup-beam@v1
with:
otp-version: '28'
elixir-version: '1.18'
- name: Install dependencies
run: mix deps.get
- name: Run tests
run: mix test