Skip to content

Commit

Permalink
Build jekyll before checking broken links
Browse files Browse the repository at this point in the history
  • Loading branch information
Tovmas committed Dec 7, 2023
1 parent b738a38 commit 15d2076
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,11 @@ jobs:
run: pip install -r .github/tests/requirements.txt

- name: Build Jekyll site
run: bundle exec jekyll serve --detach
run: bundle exec jekyll build
env:
JEKYLL_ENV: production
JEKYLL_ENV: development
PAGES_REPO_NWO: ${{ github.repository }}

- name: Update pytest
run: pip install --upgrade pytest pytest-asyncio

- name: Run tests
run: pytest .github/tests

- name: Check broken links to pages
run: |
bundle exec htmlproofer _site \
Expand All @@ -59,4 +53,19 @@ jobs:
--allow-missing-href true \
--check-internal-hash true
env:
JEKYLL_ENV: production
JEKYLL_ENV: development

- name: Serve Jekyll site
run: bundle exec jekyll serve --detach
env:
JEKYLL_ENV: production
PAGES_REPO_NWO: ${{ github.repository }}

- name: Update pytest
run: pip install --upgrade pytest pytest-asyncio

- name: Run tests
run: pytest .github/tests

- name: Stop Jekyll server
run: pkill -f 'bundle exec jekyll serve' || true

0 comments on commit 15d2076

Please sign in to comment.