Skip to content
Snippets Groups Projects
Commit b7f8627c authored by Ines's avatar Ines
Browse files

add CI linter

parent adf4b197
Branches 1.0.x
No related tags found
No related merge requests found
Pipeline #1775 failed
......@@ -18,13 +18,32 @@ variables:
- drupal-ci-toolbox-template.yml
- templates/
glab-lint:
image:
name: gitlab/glab:latest
entrypoint:
- '/usr/bin/env'
stage: Lint
needs: ['Update remote URL']
script:
- glab auth login --hostname ${CI_SERVER_HOST} --token ${CI_JOB_TOKEN}
- glab ci lint ${LINTER_FILENAME_CHECK}
variables:
GITLAB_TOKEN: ${CI_JOB_TOKEN}
'GitLab-CI Lint':
gitlab-ci-linter:
stage: Lint
needs: ['Update remote URL']
trigger:
include:
- local: drupal-ci-toolbox-template.yml
before_script:
- pip install git+https://gitlab.com/devopshq/gitlab-ci-linter#master
script:
- gitlab-ci-linter
--project ${CI_PROJECT_PATH}
--server ${CI_SERVER_URL}
--private-token ${PRIVATE_TOKEN}
--ref ${CI_MERGE_REQUEST_SOURCE_BRANCH_NAME:-$CI_COMMIT_BRANCH}
--filename ${LINTER_FILENAME_CHECK}
workflow:
rules:
......
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