GitHub Action
Broken URLs in Code
v1.0.1
Latest version
This action will check all URLs in your code and report broken ones. Simple as that.
$ npm run build && npm run package
$ npm test
- name: Check broken URLs
uses: RazcoDev/[email protected]
with:
# The directory you want to check
directory: '.'
# The files glob to check the URLs inside
files-glob: '**/*.js'
# The URLs regex to check
url-regex: 'http[s]?:\/\/(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\\(\\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+'
Required The directory you want to check. Default .
.
Required The files glob to check the URLs inside. Default **/*
.
Required The URLs regex to check. Default http[s]?:\/\/(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\\(\\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+
.
The broken URLs found in the code.
Apache-2.0 License
Authors: Raz Cohen