Merge pull request #147 from 3mdeb/fix-http-link #208
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: SEO CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
- develop | |
jobs: | |
linkChecker: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/[email protected] | |
- name: Test links | |
uses: 3mdeb/lychee-log-action@main | |
seo_spy_orphan_pages: | |
runs-on: ubuntu-latest | |
name: Check orphan pages | |
steps: | |
- name: Checkout repo | |
uses: actions/[email protected] | |
with: | |
submodules: true | |
- name: Checkout SEO Spy | |
uses: actions/[email protected] | |
with: | |
repository: 3mdeb/seo-spy | |
path: seo-spy | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.9" | |
- name: Install Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r seo-spy/requirements.txt | |
- name: Setup Hugo | |
uses: peaceiris/[email protected] | |
with: | |
extended: true | |
- name: Serve site | |
run: | | |
npm install postcss-cli | |
hugo | |
hugo serve -b http://localhost:1313 --bind=0.0.0.0 & | |
- name: Check orphan pages | |
uses: 3mdeb/seo-spy-action@main | |
with: | |
domain: "http://localhost:1313" | |
seo_spy_canonical_links: | |
runs-on: ubuntu-latest | |
name: Check canonical links | |
steps: | |
- name: Checkout repo | |
uses: actions/[email protected] | |
with: | |
submodules: true | |
- name: Checkout SEO Spy | |
uses: actions/[email protected] | |
with: | |
repository: 3mdeb/seo-spy | |
path: seo-spy | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.9" | |
- name: Install Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r seo-spy/requirements.txt | |
- name: Setup Hugo | |
uses: peaceiris/[email protected] | |
with: | |
extended: true | |
- name: Serve site | |
run: | | |
npm install postcss-cli | |
hugo | |
hugo serve -b http://localhost:1313 --bind=0.0.0.0 & | |
- name: Check canonical links | |
uses: 3mdeb/seo-spy-action@main | |
with: | |
domain: 'http://localhost:1313' | |
args: '-c' |