CICD: Detect broken HTML links in the documentation as part of the pipeline (#3439)

This commit is contained in:
Jeffrey Cafferata 2025-03-21 15:56:41 +01:00 committed by GitHub
parent 47abf996e0
commit c5b3ccc7db
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 3038 additions and 12 deletions

View file

@ -19,7 +19,7 @@ jobs:
go-version: stable
- run: go install golang.org/x/tools/cmd/stringer@latest
- run: go fmt ./...
- run: bin/fmtjson $(find . -type f -name \*.json -print)
- run: bin/fmtjson $(find . -type f -name "*.json" ! -name "package-lock.json" -print)
- run: go mod tidy
- run: go generate ./...
- uses: CatChen/check-git-status-action@v1

2
.gitignore vendored
View file

@ -1,3 +1,4 @@
/node_modules/
/tmp
/commands/types/dnscontrol.d.ts
dnscontrol-Darwin
@ -28,6 +29,7 @@ stack.sh
types-dnscontrol.d.ts
dist/
node_modules/
// Test artifact:
*.ACTUAL

14
.linkspector.yml Normal file
View file

@ -0,0 +1,14 @@
useGitIgnore: true
dirs:
- documentation
files:
- README.md
- SECURITY.md
ignorePatterns:
- pattern: '.*?plain=1$'
- pattern: '.*.md#$'
- pattern: '^https://cloud.digitalocean.com/settings/applications'
- pattern: '^https://dns.hetzner.com/settings/api-token'
- pattern: '^https://github.com/StackExchange/dnscontrol/settings/.*$'
- pattern: '^https://gitlab.com/cafferata/dnscontrol/-/pipelines/new.*$'
- pattern: '^https://my.easyname.com/en/account/api'

1
.nvmrc Normal file
View file

@ -0,0 +1 @@
lts/*

View file

@ -7,7 +7,7 @@ if [[ -x node_modules/.bin/prettier ]]; then
fi
# JSON
bin/fmtjson $(find . -type f -name \*.json -print)
bin/fmtjson $(find . -type f -name "*.json" ! -name "package-lock.json" -print)
# dnsconfig.js-compatible files:
for i in pkg/js/parse_tests/*.js ; do dnscontrol fmt -i $i -o $i ; done

3024
package-lock.json generated

File diff suppressed because it is too large Load diff

5
package.json Normal file
View file

@ -0,0 +1,5 @@
{
"dependencies": {
"@umbrelladocs/linkspector": "^0.3.13"
}
}