Compare commits

...

13 Commits

Author SHA1 Message Date
c476df9aa9 chore(workflow): add missing dependencies
All checks were successful
Code Format / format (push) Successful in 29s
Run tests / test (push) Successful in 29s
2025-09-11 20:58:44 +02:00
e4ff82909c chore: add github actions
All checks were successful
Code Format / format (push) Successful in 1m24s
Run tests / test (push) Successful in 1m26s
2025-09-09 13:31:55 +02:00
e2ceb131f3 chore: update workflows
All checks were successful
Code Format / format (push) Successful in 1m12s
Run tests / test (push) Successful in 20s
2025-09-03 16:19:41 +02:00
38cd2589cd chore: add CHANGELOG.md file 2025-09-03 16:19:30 +02:00
7ca9eb0b17 fix: update test workflow
All checks were successful
Run tests / test-project (push) Successful in 1m18s
2025-09-03 13:44:47 +02:00
00429e3274 fix: update test workflow
Some checks failed
Run tests / test-project (push) Failing after 14s
2025-09-03 13:44:02 +02:00
cabe6e9a77 fix: add missing versions in tests workflow
Some checks failed
Run tests / test-project (push) Failing after 19s
2025-09-03 11:52:24 +02:00
4fc4f11cab fix: move test workflow to correct folder
Some checks failed
Run tests / test-project (push) Failing after 11s
2025-09-03 11:45:06 +02:00
7b3729d1d0 chore: update test workflow 2025-09-03 11:44:29 +02:00
6f944a8964 chore: add tests workflow 2025-09-03 11:41:55 +02:00
44c128d1fb chore: move environments file into a subfolder 2025-08-29 08:43:10 +02:00
dc52718750 chore: add config files 2025-08-29 08:06:32 +02:00
e8f37b91a1 chore: add application module 2025-08-29 08:06:23 +02:00
12 changed files with 117 additions and 1 deletions

View File

@@ -0,0 +1,23 @@
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: Install dependencies
run: mix deps.get
- name: Check format
run: mix format --check-formatted

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

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

@@ -0,0 +1,23 @@
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: Install dependencies
run: mix deps.get
- 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

6
CHANGELOG.md Normal file
View File

@@ -0,0 +1,6 @@
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

3
config/config.exs Normal file
View File

@@ -0,0 +1,3 @@
import Config
import_config "environments/#{config_env()}.exs"

View File

View File

View File

4
config/runtime.exs Normal file
View File

@@ -0,0 +1,4 @@
import Config
if config_env() == :prod do
end

9
lib/application.ex Normal file
View File

@@ -0,0 +1,9 @@
defmodule Exproj.Application do
use Application
@spec start(any(), any()) :: {:error, any()} | {:ok, pid()}
def start(_type, _args) do
children = []
Supervisor.start_link(children, strategy: :one_for_one)
end
end

View File

@@ -8,7 +8,7 @@ defmodule Exproj.MixProject do
elixir: "~> 1.18",
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
aliases: aliases()
]
end
@@ -20,6 +20,8 @@ defmodule Exproj.MixProject do
def application do
[
extra_applications: [:logger],
env: [],
mod: {Exproj.Application, []}
]
end