mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 21:55:11 +00:00
d77cb8ceb9
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
36 lines
1.1 KiB
YAML
36 lines
1.1 KiB
YAML
name: docs-e2e
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
url:
|
|
required: false
|
|
description: The URL to run the test suite against.
|
|
type: string
|
|
deployment_status:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
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:
|
|
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
|
|
- run: corepack enable
|
|
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
|
|
with:
|
|
cache: "pnpm"
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install
|
|
|
|
- run: node ./scripts/crawl.mjs
|
|
env:
|
|
BASE_URL: ${{ github.event.inputs.url || github.event.deployment.payload.web_url || github.event.deployment_status.target_url }}
|