summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Chris Swithinbank <swithinbank@gmail.com> 2023-06-28 14:20:32 +0200
committerGravatar GitHub <noreply@github.com> 2023-06-28 14:20:32 +0200
commit2df9002a561a008cea0a37b52159365a3e74ae68 (patch)
tree88e1db33cc0a8a9a5dc6c372fcf7d1ceef921533
parent34517ce8c0ef044aeea2b7747d42385517218c26 (diff)
downloadastro-2df9002a561a008cea0a37b52159365a3e74ae68.tar.gz
astro-2df9002a561a008cea0a37b52159365a3e74ae68.tar.zst
astro-2df9002a561a008cea0a37b52159365a3e74ae68.zip
Run documentation generation as part of docs smoke test (#7495)
-rw-r--r--.github/workflows/ci.yml18
1 files changed, 18 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 3c54ee206..25cebb6ab 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -243,6 +243,24 @@ jobs:
- name: Remove docs translations except for English and Korean
run: find smoke/docs/src/content/docs ! -name 'en' ! -name 'ko' -type d -mindepth 1 -maxdepth 1 -exec rm -rf {} +
+ - name: Check if docs changed
+ id: changes
+ uses: dorny/paths-filter@v2
+ with:
+ filters: |
+ docs:
+ - 'packages/integrations/*/README.md'
+ - 'packages/astro/src/@types/astro.ts'
+ - 'packages/astro/src/core/errors/errors-data.ts'
+
+ - name: Build autogenerated docs pages from current astro branch
+ if: ${{ steps.changes.outputs.docs == 'true' }}
+ run: cd smoke/docs && pnpm docgen && pnpm docgen:errors && pnpm docgen:integrations
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ SOURCE_REPO: ${{ github.event.repository.full_name }}
+ SOURCE_BRANCH: ${{ github.head_ref || github.ref_name }}
+
- name: Test
run: pnpm run test:smoke
env: