Skip to content

Commit 026cd00

Browse files
committed
ci: migrate link checks to flint
Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
1 parent afcf274 commit 026cd00

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

.github/config/flint.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[checks.lychee]
2+
config = "lychee.toml"
3+
check_all_local = true

mise.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
[tools]
2+
# Linters
3+
"github:grafana/flint" = "0.20.3"
24
lychee = "0.23.0"
35
markdownlint-cli2 = "0.22.0"
46

7+
[env]
8+
FLINT_CONFIG_DIR = ".github/config"
9+
510
[settings]
611
# Only install tools explicitly defined in the [tools] section above
712
idiomatic_version_file_enable_tools = []
@@ -12,7 +17,6 @@ windows_executable_extensions = ["sh"]
1217
windows_default_file_shell_args = "bash"
1318
use_file_shell_for_executable_tasks = true
1419

15-
# Pick the tasks you need from flint (https://github.com/grafana/flint)
1620
[tasks."lint:links"]
1721
description = "Check for broken links in changed files + all local links"
18-
file = "https://raw.githubusercontent.com/grafana/flint/eded4cd370c729289a6de327a1a26831e10a39b9/tasks/lint/links.sh" # v0.20.2
22+
run = "flint run lychee"

0 commit comments

Comments
 (0)