From 910dec001d52634ec4437a31e6b11780c3bdd26b 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 2a50a2346a32a3..83c65225f0ac40 100644 --- a/.github/workflows/misc.yml +++ b/.github/workflows/misc.yml @@ -29,5 +29,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 aa3eb1567d447e..9f1f58d8564be3 100644 --- a/Makefile +++ b/Makefile @@ -588,6 +588,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