Skip to content
Snippets Groups Projects
Commit d8857667 authored by Benjamin Bertrand's avatar Benjamin Bertrand
Browse files

Add stage to run pre-commit hooks

parent 550c9e33
No related branches found
No related tags found
No related merge requests found
...@@ -13,6 +13,7 @@ variables: ...@@ -13,6 +13,7 @@ variables:
POSTGRES_DB: csentry_db_test POSTGRES_DB: csentry_db_test
stages: stages:
- check
- build - build
- test - test
- analyse - analyse
...@@ -22,6 +23,14 @@ stages: ...@@ -22,6 +23,14 @@ stages:
before_script: before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
check:
<<: *runner_tags
stage: check
image: registry.esss.lu.se/ics-docker/pre-commit:latest
before_script: []
script:
- pre-commit run --all-files
build: build:
<<: *runner_tags <<: *runner_tags
stage: build stage: build
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment