X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;f=.woodpecker%2F.test.yml;h=f4165502981fd05096af4419c31930b7d2d5026f;hb=ff16840cc8fac0f2ae9d183b4e5d5e5fae530a9e;hp=cef7436433bc540d05854968ef5d93385af6a9b7;hpb=443942e1ea96c6da7af098a21b108e1777e17384;p=akkoma diff --git a/.woodpecker/.test.yml b/.woodpecker/.test.yml index cef743643..f41655029 100644 --- a/.woodpecker/.test.yml +++ b/.woodpecker/.test.yml @@ -1,16 +1,23 @@ -depends_on: -- lint - matrix: ELIXIR_VERSION: - 1.13 pipeline: + lint: + when: + event: + - pull_request + 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: @@ -24,7 +31,7 @@ pipeline: image: pleromaforkci/ci-base:${ELIXIR_VERSION} when: event: - - push + - pull_request environment: MIX_ENV: test POSTGRES_DB: pleroma_test @@ -34,6 +41,7 @@ pipeline: commands: - mix local.hex --force - mix local.rebar --force + - mix deps.get - mix ecto.drop -f -q - mix ecto.create - mix ecto.migrate @@ -42,6 +50,9 @@ pipeline: services: postgres: image: postgres:13 + when: + event: + - pull_request environment: POSTGRES_DB: pleroma_test POSTGRES_USER: postgres