From 241e05795bdc7db65506e269c312b31c17105580 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Tue, 16 Feb 2021 15:35:44 +0100 Subject: [PATCH] tools: run doctool tests on GitHub Actions CI PR-URL: https://github.com/nodejs/node/pull/37398 Reviewed-By: Darshan Sen Reviewed-By: Richard Lau Reviewed-By: Rich Trott Reviewed-By: Zijian Liu Reviewed-By: James M Snell --- .github/workflows/misc.yml | 4 ++-- Makefile | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/misc.yml b/.github/workflows/misc.yml index 1444dff7262819..108511ba78c28b 100644 --- a/.github/workflows/misc.yml +++ b/.github/workflows/misc.yml @@ -28,5 +28,5 @@ jobs: with: name: docs path: out/doc - - name: Check links - run: node tools/doc/checkLinks.js . + - name: Test + run: NODE=$(command -v node) make test-doc-ci TEST_CI_ARGS="-p actions" diff --git a/Makefile b/Makefile index 46152bb45af57d..0fa52f331f7802 100644 --- a/Makefile +++ b/Makefile @@ -587,6 +587,11 @@ test-doc: doc-only lint-md ## Builds, lints, and verifies the docs. fi $(NODE) tools/doc/checkLinks.js . +.PHONY: test-doc-ci +test-doc-ci: doc-only + $(PYTHON) tools/test.py --shell $(NODE) $(TEST_CI_ARGS) $(PARALLEL_ARGS) doctool + $(NODE) tools/doc/checkLinks.js . + test-known-issues: all $(PYTHON) tools/test.py $(PARALLEL_ARGS) known_issues