diff options
author | Marcel Amirault <mamirault@gitlab.com> | 2022-11-24 19:15:29 +0300 |
---|---|---|
committer | Marcel Amirault <mamirault@gitlab.com> | 2022-11-24 19:15:29 +0300 |
commit | 7fbb5e1313ebde811877044e87f444a0a283fed4 (patch) | |
tree | 8aebef4f6c6d438646164d9c4bd141b5f88ad2e8 /.gitlab | |
parent | dd505e0a4ce229c0e24c26a8ffca599f70f95712 (diff) | |
parent | 95a5390f185351f20081097da18c6f364ce96f8a (diff) |
Merge branch 'eread/add-shellcheck-to-project' into 'main'
Add ShellCheck to project
See merge request https://gitlab.com/gitlab-org/gitlab-docs/-/merge_requests/3291
Merged-by: Marcel Amirault <mamirault@gitlab.com>
Approved-by: Marcel Amirault <mamirault@gitlab.com>
Co-authored-by: Evan Read <eread@gitlab.com>
Diffstat (limited to '.gitlab')
-rw-r--r-- | .gitlab/ci/build-and-deploy.gitlab-ci.yml | 6 | ||||
-rw-r--r-- | .gitlab/ci/test.gitlab-ci.yml | 13 |
2 files changed, 16 insertions, 3 deletions
diff --git a/.gitlab/ci/build-and-deploy.gitlab-ci.yml b/.gitlab/ci/build-and-deploy.gitlab-ci.yml index 8a90beb1..ce41b369 100644 --- a/.gitlab/ci/build-and-deploy.gitlab-ci.yml +++ b/.gitlab/ci/build-and-deploy.gitlab-ci.yml @@ -108,8 +108,8 @@ review: before_script: [] cache: {} script: - - scripts/review-replace-urls - - scripts/deploy-review-app + - scripts/review-replace-urls.sh + - scripts/deploy-review-app.sh rules: - if: '$CI_PROJECT_PATH == "gitlab-renovate-forks/gitlab-docs"' when: manual @@ -136,7 +136,7 @@ review_stop: before_script: [] cache: {} script: - - scripts/deploy-review-app + - scripts/deploy-review-app.sh rules: - if: '$CI_PROJECT_PATH == "gitlab-renovate-forks/gitlab-docs"' allow_failure: true diff --git a/.gitlab/ci/test.gitlab-ci.yml b/.gitlab/ci/test.gitlab-ci.yml index 4c3ce4ea..631ca898 100644 --- a/.gitlab/ci/test.gitlab-ci.yml +++ b/.gitlab/ci/test.gitlab-ci.yml @@ -126,6 +126,19 @@ markdownlint: - make markdownlint-tests # +# Run ShellCheck tests +# +shellcheck: + extends: + - .rules_site_tests + image: koalaman/shellcheck-alpine:v0.8.0 + needs: [] + stage: test + script: + - apk add make + - make shellcheck-tests + +# # Check for broken external links # test_external_links: |