mirror of
https://github.com/submariner-io/submariner-charts.git
synced 2026-09-20 19:10:34 +00:00
Add link aliveness tests
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
This commit is contained in:
committed by
Thomas Pantelis
parent
9d3a9b7f66
commit
ae84a0b409
@@ -0,0 +1,8 @@
|
||||
---
|
||||
name: Broken link detected by CI
|
||||
labels: bug
|
||||
---
|
||||
|
||||
<!-- Used by automation to raise an Issue when the periodic link aliveness tests detect a broken link. -->
|
||||
|
||||
Periodic link aliveness CI detected a broken link. Please see the job results for details.
|
||||
@@ -0,0 +1,25 @@
|
||||
name: Markdown Link Checks
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 0 * * 0"
|
||||
|
||||
jobs:
|
||||
markdown-link-check-periodic:
|
||||
runs-on: ubuntu-latest
|
||||
name: Markdown Link Checks
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v1
|
||||
|
||||
- name: Run markdown-link-check
|
||||
uses: gaurav-nelson/github-action-markdown-link-check@0.6.0
|
||||
with:
|
||||
config-file: ".markdownlinkcheck.json"
|
||||
|
||||
- name: Raise an Issue to report broken links
|
||||
if: ${{ failure() }}
|
||||
uses: JasonEtco/create-an-issue@v2
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
filename: .github/ISSUE_TEMPLATE/broken-link.md
|
||||
@@ -0,0 +1,16 @@
|
||||
name: Markdown Link Checks
|
||||
on: pull_request
|
||||
|
||||
jobs:
|
||||
markdown-link-check:
|
||||
runs-on: ubuntu-latest
|
||||
name: Markdown Link Checks
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v1
|
||||
|
||||
- name: Run markdown-link-check
|
||||
uses: gaurav-nelson/github-action-markdown-link-check@0.6.0
|
||||
with:
|
||||
config-file: ".markdownlinkcheck.json"
|
||||
check-modified-files-only: "yes"
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"ignorePatterns": [
|
||||
{
|
||||
"pattern": "^https://github.com/\\S+/\\S+/(issues|pull)/[0-9]+"
|
||||
},
|
||||
{
|
||||
"pattern": "^http://localhost:"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user