summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorMark Felder <feld@feld.me>2024-01-20 22:43:41 -0500
committerMark Felder <feld@feld.me>2024-01-20 22:43:41 -0500
commitdf31ec0d52e74ed04021c2b6f0166083117cc7b0 (patch)
treef49e8c26f8d10ecbf229c7fdc1b5d137fa71598c /.gitlab-ci.yml
parenta0518a4ee171598dddfc6ae9202074cfe13945d5 (diff)
downloadpleroma-df31ec0d52e74ed04021c2b6f0166083117cc7b0.tar.gz
pleroma-df31ec0d52e74ed04021c2b6f0166083117cc7b0.zip
Linting as a separate stage
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml9
1 files changed, 5 insertions, 4 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1b581d50f..4bf29b5a5 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -28,6 +28,7 @@ cache: &global_cache_policy
stages:
- check-changelog
- build
+ - lint
- test
- benchmark
- deploy
@@ -185,10 +186,10 @@ unit-testing-rum:
- "mix ecto.migrate --migrations-path priv/repo/optional_migrations/rum_indexing/"
- mix test --preload-modules
-lint:
+formatting:
extends: .build_changes_policy
image: &current_elixir elixir:1.13-alpine
- stage: test
+ stage: lint
cache: *testing_cache_policy
before_script: &current_bfr_script
- apk update
@@ -203,7 +204,7 @@ analysis:
extends:
- .build_changes_policy
- .using-ci-base
- stage: test
+ stage: lint
cache: *testing_cache_policy
script:
- mix credo --strict --only=warnings,todo,fixme,consistency,readability
@@ -211,7 +212,7 @@ analysis:
cycles:
extends: .build_changes_policy
image: *current_elixir
- stage: test
+ stage: lint
cache: {}
before_script: *current_bfr_script
script: