Compare commits
1 commit
0a16263a96
...
6dd95be7a2
| Author | SHA1 | Date | |
|---|---|---|---|
| 6dd95be7a2 |
1 changed files with 7 additions and 3 deletions
10
.drone.yml
10
.drone.yml
|
|
@ -10,7 +10,7 @@ services:
|
||||||
POSTGRES_PASSWORD: postgres
|
POSTGRES_PASSWORD: postgres
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: lint and test
|
- name: check
|
||||||
image: docker.io/library/elixir:1.18.3-otp-27
|
image: docker.io/library/elixir:1.18.3-otp-27
|
||||||
commands:
|
commands:
|
||||||
# Install hex package manager
|
# Install hex package manager
|
||||||
|
|
@ -30,7 +30,7 @@ steps:
|
||||||
# Provide hints for improving code quality
|
# Provide hints for improving code quality
|
||||||
- mix credo
|
- mix credo
|
||||||
|
|
||||||
- name: postgres ready
|
- name: wait for postgres
|
||||||
image: docker.io/library/postgres:17.2
|
image: docker.io/library/postgres:17.2
|
||||||
commands:
|
commands:
|
||||||
# Wait for postgres to become available
|
# Wait for postgres to become available
|
||||||
|
|
@ -52,7 +52,11 @@ steps:
|
||||||
MIX_ENV: test
|
MIX_ENV: test
|
||||||
TEST_POSTGRES_HOST: postgres
|
TEST_POSTGRES_HOST: postgres
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres ready
|
- wait for postgres
|
||||||
commands:
|
commands:
|
||||||
|
# Install hex package manager
|
||||||
|
- mix local.hex --force
|
||||||
|
# Fetch dependencies
|
||||||
|
- mix deps.get
|
||||||
# Run tests
|
# Run tests
|
||||||
- mix test
|
- mix test
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue