lint as part of test pipeline
Some checks failed
ci/woodpecker/push/release Pipeline was successful
ci/woodpecker/pr/release Pipeline was successful
ci/woodpecker/pr/docs Pipeline was successful
ci/woodpecker/pr/test Pipeline failed
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/docs Pipeline failed

This commit is contained in:
FloatingGhost 2022-07-14 17:27:51 +01:00
parent 58932a892d
commit 56681c0fee
2 changed files with 7 additions and 20 deletions

View file

@ -1,10 +0,0 @@
pipeline:
lint:
image: pleromaforkci/ci-base:1.13
commands:
- mix local.hex --force
- mix local.rebar --force
- mix format --check-formatted
when:
event:
- push

View file

@ -1,23 +1,23 @@
depends_on:
- lint
matrix:
ELIXIR_VERSION:
- 1.13
pipeline:
lint:
image: pleromaforkci/ci-base:1.13
commands:
- mix local.hex --force
- mix local.rebar --force
- mix format --check-formatted
build:
image: pleromaforkci/ci-base:${ELIXIR_VERSION}
when:
event:
- push
- pull_request
environment:
MIX_ENV: test
commands:
- mix local.hex --force
- mix local.rebar --force
- mix deps.get
- mix compile
test:
@ -25,7 +25,6 @@ pipeline:
image: pleromaforkci/ci-base:${ELIXIR_VERSION}
when:
event:
- push
- pull_request
environment:
MIX_ENV: test
@ -34,8 +33,6 @@ pipeline:
POSTGRES_PASSWORD: postgres
DB_HOST: postgres
commands:
- mix local.hex --force
- mix local.rebar --force
- mix ecto.drop -f -q
- mix ecto.create
- mix ecto.migrate