Compare commits
13 Commits
c95faa86ed
...
main
Author | SHA1 | Date | |
---|---|---|---|
c476df9aa9 | |||
e4ff82909c | |||
e2ceb131f3 | |||
38cd2589cd | |||
7ca9eb0b17 | |||
00429e3274 | |||
cabe6e9a77 | |||
4fc4f11cab | |||
7b3729d1d0 | |||
6f944a8964 | |||
44c128d1fb | |||
dc52718750 | |||
e8f37b91a1 |
23
.gitea/workflows/code-format.yaml
Normal file
23
.gitea/workflows/code-format.yaml
Normal 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
.gitea/workflows/run-tests.yaml
Normal file
23
.gitea/workflows/run-tests.yaml
Normal 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
23
.github/workflows/code-format.yaml
vendored
Normal 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
23
.github/workflows/run-tests.yaml
vendored
Normal 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
6
CHANGELOG.md
Normal 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
3
config/config.exs
Normal file
@@ -0,0 +1,3 @@
|
||||
import Config
|
||||
|
||||
import_config "environments/#{config_env()}.exs"
|
0
config/environments/dev.exs
Normal file
0
config/environments/dev.exs
Normal file
0
config/environments/prod.exs
Normal file
0
config/environments/prod.exs
Normal file
0
config/environments/test.exs
Normal file
0
config/environments/test.exs
Normal file
4
config/runtime.exs
Normal file
4
config/runtime.exs
Normal file
@@ -0,0 +1,4 @@
|
||||
import Config
|
||||
|
||||
if config_env() == :prod do
|
||||
end
|
9
lib/application.ex
Normal file
9
lib/application.ex
Normal 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
|
4
mix.exs
4
mix.exs
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user