Compare commits

..

1 commit

Author SHA1 Message Date
2ec534f440
Set up basic CI
Some checks reported errors
continuous-integration/drone/push Build encountered an error
continuous-integration/drone/pr Build encountered an error
2025-04-21 15:04:18 +02:00

View file

@ -10,9 +10,9 @@ services:
POSTGRES_PASSWORD: postgres
steps:
- name: restore_cache
- name: restore-cache-with-filesystem
# the `plugins` user seems to be owned by the drone organization
image: docker.io/plugins/cache:1.9
image: docker.io/library/plugins/cache:1.9
pull: true
settings:
backend: "filesystem"
@ -28,8 +28,6 @@ steps:
- name: check
image: docker.io/library/elixir:1.18.3-otp-27
depends_on:
- restore_cache
commands:
# Install hex package manager
- mix local.hex --force
@ -48,7 +46,7 @@ steps:
# Provide hints for improving code quality
- mix credo
- name: wait_for_postgres
- name: wait for postgres
image: docker.io/library/postgres:17.2
commands:
# Wait for postgres to become available
@ -66,12 +64,11 @@ steps:
- name: test
image: docker.io/library/elixir:1.18.3-otp-27
depends_on:
- restore_cache
# - wait_for_postgres
environment:
MIX_ENV: test
TEST_POSTGRES_HOST: postgres
# depends_on:
# - wait for postgres
commands:
# Install hex package manager
- mix local.hex --force