Skip to content

ci(sdk test): Fix sdk tests workflow #8

ci(sdk test): Fix sdk tests workflow

ci(sdk test): Fix sdk tests workflow #8

Workflow file for this run

on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
name: Documentation links
jobs:
markdown-test-and-update:
name: Markdown files test and update
runs-on: ubuntu-latest
steps:
- name: Clone sources
uses: actions/checkout@v4
with:
path: extension
- name: Launch localhost server
run: |
sudo npm install --global http-server
http-server ./extension &
- name: Set up Ruby 2.6
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
- name: Check links in Markdown files
run: |
gem install awesome_bot
cd extension
awesome_bot --files README.md --allow-dupe --allow 401 --skip-save-results --white-list ddev.site --base-url http://localhost:8080/
awesome_bot docs/*.md --skip-save-results --allow-dupe --allow 401,301 --white-list crowdsec.net/v2,ddev.site,https://crowdsec,http://crowdsec,http://localhost:7422,your-crowdsec-lapi-url,your-crowdsec-app-sec-url --base-url http://localhost:8080/docs/