test: validate metrics compatibility with Grafana scrapper #2658
This file contains hidden or 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: Link Checker | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 * * *" | |
push: | |
branches: | |
- main | |
paths: | |
- "**.md" | |
- "**.mdx" | |
- "**.html" | |
- ".github/workflows/link-check.yml" | |
merge_group: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- "**.md" | |
- "**.mdx" | |
- "**.html" | |
- ".github/workflows/link-check.yml" | |
jobs: | |
link-check: | |
name: Link Check | |
runs-on: ubuntu-24.04-arm | |
permissions: | |
contents: read | |
issues: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Link Checker | |
id: lychee | |
uses: lycheeverse/lychee-action@v2 | |
with: | |
args: --user-agent "curl/8.5.0" --no-progress --config ./.config/lychee.toml './**/*.md' './**/*.mdx' './**/*.html' | |
- name: Create Issue From File | |
if: env.lychee_exit_code != 0 && github.event_name == 'schedule' | |
uses: peter-evans/create-issue-from-file@v6 | |
with: | |
title: Link Checker Report | |
content-filepath: ./lychee-report.md | |
- name: Fail job on error | |
if: env.lychee_exit_code != 0 && github.event_name != 'schedule' | |
run: exit 1 |