diff options
author | Evan Read <eread@gitlab.com> | 2022-09-02 16:45:09 +0300 |
---|---|---|
committer | Sarah German <sgerman@gitlab.com> | 2022-09-02 16:45:09 +0300 |
commit | 303863edc7b550eca1c3a0d9a16771ae7c08b4c6 (patch) | |
tree | 805f5c9dc400c42843d444146e7f0c77774704ca /.gitlab/ci/test.gitlab-ci.yml | |
parent | f81133efc9b707678affacd342f9c092c7225896 (diff) |
Add check for index.html to global navigation check script
Diffstat (limited to '.gitlab/ci/test.gitlab-ci.yml')
-rw-r--r-- | .gitlab/ci/test.gitlab-ci.yml | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/.gitlab/ci/test.gitlab-ci.yml b/.gitlab/ci/test.gitlab-ci.yml index 100c9c82..e1d8171f 100644 --- a/.gitlab/ci/test.gitlab-ci.yml +++ b/.gitlab/ci/test.gitlab-ci.yml @@ -32,28 +32,11 @@ check_duplicate_redirects: - exit $(cat output.txt | wc -l) # -# Check for index.html in navigation.yaml +# Check global navigation for: # -check_index_html: - image: busybox - extends: - - .rules_site_tests - needs: [] - stage: test - script: - # Check for index.html in navigation.yaml and write the output in output.txt - - grep -Ir "/index.html" content/_data/navigation.yaml | sed -e '/^#/d' | tee output.txt - - | - echo "***************************************************************************" - echo "* If this job failed, it is because a navbar entry is using 'index.html'. *" - echo "* Link to just '/' instead, For example 'ee/user/' *" - echo "***************************************************************************" - - exit $(cat output.txt | wc -l) - +# - Identical duplicate entries. +# - index.html in the entries. # -# Check for identical duplicate entries in global navigation -# - check_global_nav_entries: extends: - .rules_site_tests |