JohanWork / url-test-github-action

github action for the url library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

github action for the url library

License:MIT License


Languages

Language:Dockerfile 90.6%Language:Shell 9.4%