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

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