Compare commits
1 commit
b3c74176e4
...
2574b9416d
| Author | SHA1 | Date | |
|---|---|---|---|
| 2574b9416d |
4 changed files with 33 additions and 7 deletions
27
.drone.yml
27
.drone.yml
|
|
@ -2,9 +2,26 @@ kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: default
|
name: default
|
||||||
|
|
||||||
|
services:
|
||||||
|
- name: postgres
|
||||||
|
image: docker.io/library/postgres:17.2
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: postgres
|
||||||
|
POSTGRES_PASSWORD: postgres
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: greeting
|
- name: lint & test
|
||||||
image: alpine
|
image: docker.io/library/elixir:1.18.3-otp-27
|
||||||
commands:
|
environment:
|
||||||
- echo hello
|
MIX_ENV: test
|
||||||
- echo world
|
commands:
|
||||||
|
# Install hex package manager
|
||||||
|
- mix local.hex --force
|
||||||
|
# Fetch dependencies
|
||||||
|
- mix deps.get
|
||||||
|
# Check for compilation errors & warnings
|
||||||
|
- mix compile --warnings-as-errors
|
||||||
|
# Check formatting
|
||||||
|
- mix format --check-formatted
|
||||||
|
# Run tests
|
||||||
|
- mix test
|
||||||
|
|
|
||||||
5
.editorconfig
Normal file
5
.editorconfig
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
root = true
|
||||||
|
|
||||||
|
[*.yml]
|
||||||
|
indent_size = 2
|
||||||
|
indent_style = space
|
||||||
4
Justfile
4
Justfile
|
|
@ -9,3 +9,7 @@ migrate-database:
|
||||||
|
|
||||||
reset-database:
|
reset-database:
|
||||||
mix ash.reset
|
mix ash.reset
|
||||||
|
|
||||||
|
ci-dev:
|
||||||
|
mix compile --warnings-as-errors
|
||||||
|
mix format --check-formatted
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en" class="[scrollbar-gutter:stable]">
|
<html lang="en" class="[scrollbar-gutter:stable]">
|
||||||
<head>
|
<head>
|
||||||
<%= Application.get_env(:live_debugger, :live_debugger_tags) %>
|
{Application.get_env(:live_debugger, :live_debugger_tags)}
|
||||||
|
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue