2022-09-13 16:06:15 +00:00
|
|
|
name: docs-e2e
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
|
|
|
url:
|
|
|
|
required: false
|
|
|
|
description: The URL to run the test suite against.
|
|
|
|
type: string
|
|
|
|
deployment_status:
|
|
|
|
|
2023-06-02 17:14:21 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2022-09-13 16:06:15 +00:00
|
|
|
jobs:
|
|
|
|
crawl-docs:
|
|
|
|
environment:
|
|
|
|
name: ${{ github.event.deployment.environment || 'Production' }}
|
|
|
|
url: ${{ github.event.inputs.url || github.event.deployment.payload.web_url || github.event.deployment_status.target_url }}
|
|
|
|
if: github.event.deployment_status.state == 'success' || github.event_name == 'workflow_dispatch'
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2023-06-02 17:14:21 +00:00
|
|
|
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
|
2022-10-17 10:10:05 +00:00
|
|
|
- run: corepack enable
|
2023-06-02 17:14:21 +00:00
|
|
|
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
|
2022-09-13 16:06:15 +00:00
|
|
|
with:
|
2022-10-17 10:10:05 +00:00
|
|
|
cache: "pnpm"
|
2022-09-13 16:06:15 +00:00
|
|
|
|
|
|
|
- name: Install dependencies
|
2022-10-17 10:10:05 +00:00
|
|
|
run: pnpm install
|
2022-09-13 16:06:15 +00:00
|
|
|
|
|
|
|
- run: node ./scripts/crawl.mjs
|
|
|
|
env:
|
|
|
|
BASE_URL: ${{ github.event.inputs.url || github.event.deployment.payload.web_url || github.event.deployment_status.target_url }}
|