2022-02-07 18:54:31 +01:00
|
|
|
name: Test and upload documentation to artifacts
|
2020-03-23 19:41:05 +01:00
|
|
|
|
2020-07-21 20:44:30 +02:00
|
|
|
on:
|
|
|
|
pull_request:
|
2021-07-16 08:24:23 +02:00
|
|
|
types: [opened, synchronize, reopened, ready_for_review]
|
2020-07-21 20:44:30 +02:00
|
|
|
push:
|
|
|
|
branches:
|
2021-05-03 10:59:10 +02:00
|
|
|
- main
|
2020-08-06 18:31:17 +02:00
|
|
|
- v[0-9]+.x-staging
|
|
|
|
- v[0-9]+.x
|
2020-03-23 19:41:05 +01:00
|
|
|
|
2022-02-18 16:46:12 +01:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2020-03-23 19:41:05 +01:00
|
|
|
env:
|
2021-07-27 03:42:13 +02:00
|
|
|
NODE_VERSION: lts/*
|
2020-03-23 19:41:05 +01:00
|
|
|
|
2022-07-12 23:50:46 +02:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2020-03-23 19:41:05 +01:00
|
|
|
jobs:
|
|
|
|
build-docs:
|
2020-11-01 09:18:08 +01:00
|
|
|
if: github.event.pull_request.draft == false
|
2020-03-23 19:41:05 +01:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-07-03 20:21:27 +02:00
|
|
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
2021-11-27 23:12:26 +01:00
|
|
|
with:
|
|
|
|
persist-credentials: false
|
2020-03-23 19:41:05 +01:00
|
|
|
- name: Use Node.js ${{ env.NODE_VERSION }}
|
2024-08-06 07:44:12 +02:00
|
|
|
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
|
2020-03-23 19:41:05 +01:00
|
|
|
with:
|
|
|
|
node-version: ${{ env.NODE_VERSION }}
|
|
|
|
- name: Environment Information
|
|
|
|
run: npx envinfo
|
|
|
|
- name: Build
|
2020-11-14 16:20:03 +01:00
|
|
|
run: NODE=$(command -v node) make doc-only
|
2024-09-03 20:59:09 +02:00
|
|
|
- uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
|
2020-03-23 19:41:05 +01:00
|
|
|
with:
|
|
|
|
name: docs
|
|
|
|
path: out/doc
|
2021-02-16 15:35:44 +01:00
|
|
|
- name: Test
|
2023-08-13 09:03:26 +02:00
|
|
|
run: NODE=$(command -v node) make test-doc-ci TEST_CI_ARGS="-p actions --node-args='--test-reporter=spec' --node-args='--test-reporter-destination=stdout' --measure-flakiness 9"
|