From 01a195caaf37242ea418979829132a5bf8a2371e Mon Sep 17 00:00:00 2001 From: Morgan Aubert Date: Tue, 27 Sep 2022 19:09:12 -0400 Subject: [PATCH] Add CI step for docs QA --- .github/workflows/qa.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/qa.yml b/.github/workflows/qa.yml index 96295594d..ec77e5cbc 100644 --- a/.github/workflows/qa.yml +++ b/.github/workflows/qa.yml @@ -7,7 +7,7 @@ on: branches: "*" jobs: - qa: + crystal: runs-on: ubuntu-latest container: image: crystallang/crystal:1.5.1 @@ -17,3 +17,15 @@ jobs: run: shards install --ignore-crystal-version - name: QA checks run: make qa + docs: + runs-on: ubuntu-latest + container: + image: crystallang/crystal:1.5.1 + steps: + - uses: actions/checkout@v1 + - name: Install doc dependencies + run: cd docs && npm install + - name: Build doc + run: | + crystal docs --output=docs/static/api + cd docs && npm run build