diff --git a/.github/workflows/links-test.yml b/.github/workflows/links-test.yml new file mode 100644 index 0000000000..9a43fe9a25 --- /dev/null +++ b/.github/workflows/links-test.yml @@ -0,0 +1,41 @@ +name: Broken Link Checker + +on: + push: + branches: + - 'master' + pull_request: + +jobs: + links-test: + name: 'Check all readmes files' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 1 + - uses: urlstechie/urlchecker-action@0.2.1 + with: + # A subfolder or path to navigate to in the present or cloned repository + subfolder: /github/workspace/ + + # A comma-separated list of file types to cover in the URL checks + file_types: .md,.mdx + + # Choose whether to include file with no URLs in the prints. + print_all: false + + # The timeout seconds to provide to requests, defaults to 5 seconds + timeout: 5 + + # How many times to retry a failed request (each is logged, defaults to 1) + retry_count: 1 + + # A comma separated links to exclude during URL checks + white_listed_urls: + + # A comma separated patterns to exclude during URL checks + white_listed_patterns: + + # choose if the force pass or not + force_pass: false diff --git a/README.md b/README.md index 024fd45ae4..26506f360b 100644 --- a/README.md +++ b/README.md @@ -102,8 +102,8 @@ A big thanks to both [Draqula](https://github.com/vadimdemedes/draqula) for insp - [Microsoft](https://microsoft.com) - [Target](https://target.com) - [HP](https://hp.com) -- [Major League Baseball Association](https://mlb.com) -- [Volvo](https://volvocars.com) +- [Major League Baseball Association](https://www.mlb.com) +- [Volvo](https://www.volvocars.com) - [Ocado](https://ocado.com) - [UPC.ch](https://upc.ch) - [EFI.com](https://efi.com)