Skip to content

JohanWork/url-test-github-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

url-test-github-action

Github action using the url-test library to find broken links in code and docs. The goal with this Github Action it to allow for integrating test to find broke links as part of your CI/CD pipelines.

How to use

Example github workflow using url-test-github-action :

jobs:
  test_job:
    runs-on: ubuntu-latest
    name: Test action
    steps:
    - name: checkout files in repo
      uses: actions/checkout@master
    - name: Check broken links
      uses: JohanWork/url-test-github-action@v1.0.5
      with:
        file-types: '.md'

in the example only files ending with .md will be tested. If any broken links are found the test will break after reporting all links found which are broken.

Examples

Two working examples can be found here:

Future work

  • Implement in go to improve speed and developer experience
  • Relative imports between .md files