mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-11-12 01:10:38 +08:00
CICD: Detect broken HTML links in the documentation as part of the pipeline (#3439)
This commit is contained in:
parent
47abf996e0
commit
c5b3ccc7db
7 changed files with 3038 additions and 12 deletions
2
.github/workflows/pr_check_git_status.yml
vendored
2
.github/workflows/pr_check_git_status.yml
vendored
|
|
@ -19,7 +19,7 @@ jobs:
|
||||||
go-version: stable
|
go-version: stable
|
||||||
- run: go install golang.org/x/tools/cmd/stringer@latest
|
- run: go install golang.org/x/tools/cmd/stringer@latest
|
||||||
- run: go fmt ./...
|
- 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 mod tidy
|
||||||
- run: go generate ./...
|
- run: go generate ./...
|
||||||
- uses: CatChen/check-git-status-action@v1
|
- uses: CatChen/check-git-status-action@v1
|
||||||
|
|
|
||||||
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -1,3 +1,4 @@
|
||||||
|
/node_modules/
|
||||||
/tmp
|
/tmp
|
||||||
/commands/types/dnscontrol.d.ts
|
/commands/types/dnscontrol.d.ts
|
||||||
dnscontrol-Darwin
|
dnscontrol-Darwin
|
||||||
|
|
@ -28,6 +29,7 @@ stack.sh
|
||||||
types-dnscontrol.d.ts
|
types-dnscontrol.d.ts
|
||||||
|
|
||||||
dist/
|
dist/
|
||||||
|
node_modules/
|
||||||
|
|
||||||
// Test artifact:
|
// Test artifact:
|
||||||
*.ACTUAL
|
*.ACTUAL
|
||||||
|
|
|
||||||
14
.linkspector.yml
Normal file
14
.linkspector.yml
Normal 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
1
.nvmrc
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
lts/*
|
||||||
|
|
@ -7,7 +7,7 @@ if [[ -x node_modules/.bin/prettier ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# JSON
|
# 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:
|
# dnsconfig.js-compatible files:
|
||||||
for i in pkg/js/parse_tests/*.js ; do dnscontrol fmt -i $i -o $i ; done
|
for i in pkg/js/parse_tests/*.js ; do dnscontrol fmt -i $i -o $i ; done
|
||||||
|
|
|
||||||
3024
package-lock.json
generated
3024
package-lock.json
generated
File diff suppressed because it is too large
Load diff
5
package.json
Normal file
5
package.json
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"dependencies": {
|
||||||
|
"@umbrelladocs/linkspector": "^0.3.13"
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Reference in a new issue