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