diff --git a/.github/workflows/seo.yml b/.github/workflows/seo.yml index 7e76e44d135..917b4fe38ae 100644 --- a/.github/workflows/seo.yml +++ b/.github/workflows/seo.yml @@ -47,3 +47,31 @@ jobs: uses: 3mdeb/seo-spy-action@main with: domain: 'http://127.0.0.1:8000' + seo_spy_canonical_links: + runs-on: ubuntu-latest + name: Check canonical links with SEO Spy + steps: + - name: Checkout repo + uses: actions/checkout@v3 + - name: Checkout SEO Spy + uses: actions/checkout@v3 + with: + repository: 3mdeb/seo-spy + path: seo-spy + - uses: actions/setup-python@v3 + with: + python-version: '3.9' + - name: Install Dependencies + run: | + python -m pip install --upgrade pip + pip install -r seo-spy/requirements.txt + pip install -r requirements.txt + - name: Serve site + run: | + mkdocs serve & + sleep 15 + - name: Check canonical links + uses: 3mdeb/seo-spy-action@main + with: + domain: 'http://127.0.0.1:8000' + args: '-c'