validate anchor links failure #9154
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check maximum nesting level is not exceeded | |
on: [pull_request] | |
env: | |
MAX_LEVELS: 9 | |
jobs: | |
Check-max-levels: | |
runs-on: ubuntu-20.04 | |
name: Check-menu-max-levels | |
steps: | |
# Checkout your code | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: '1.20' | |
- name: "Check navigation level does not exceed the defined maximum" | |
run: | | |
cd scripts/navigation-levels | |
go run main.go --max=$MAX_LEVELS |