Skip to content

Commit

Permalink
fixup! tools: run doctool tests on GitHub Actions CI
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed Feb 16, 2021
1 parent 66921c8 commit beff77b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/misc.yml
Expand Up @@ -24,8 +24,10 @@ jobs:
- name: Environment Information
run: npx envinfo
- name: Build
run: NODE=$(command -v node) make test-doc
run: NODE=$(command -v node) make doc-only
- uses: actions/upload-artifact@v1
with:
name: docs
path: out/doc
- name: Test
run: NODE=$(command -v node) make test-doc-ci
9 changes: 6 additions & 3 deletions Makefile
Expand Up @@ -63,9 +63,7 @@ V ?= 0
# Use -e to double check in case it's a broken link
# Use $(PWD) so we can cd to anywhere before calling this
available-node = \
if [ -x $(NODE) ] && [ -e $(NODE) ]; then \
$(NODE) $(1); \
elif [ -x $(PWD)/$(NODE) ] && [ -e $(PWD)/$(NODE) ]; then \
if [ -x $(PWD)/$(NODE) ] && [ -e $(PWD)/$(NODE) ]; then \
$(PWD)/$(NODE) $(1); \
elif [ -x `command -v node` ] && [ -e `command -v node` ] && [ `command -v node` ]; then \
`command -v node` $(1); \
Expand Down Expand Up @@ -590,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) $(PARALLEL_ARGS) doctool
$(NODE) tools/doc/checkLinks.js .

test-known-issues: all
$(PYTHON) tools/test.py $(PARALLEL_ARGS) known_issues

Expand Down

0 comments on commit beff77b

Please sign in to comment.