From 68c812840593f7800a0c54fc0ff9fb84149a4713 Mon Sep 17 00:00:00 2001 From: mahula Date: Mon, 27 Nov 2023 10:09:43 +0100 Subject: [PATCH] refactor documentation check workflow --- .github/workflows/check-documentation.yml | 23 ++++++++++++++++++++++- package.json | 1 + 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check-documentation.yml b/.github/workflows/check-documentation.yml index d38cfad3a..51a96adae 100644 --- a/.github/workflows/check-documentation.yml +++ b/.github/workflows/check-documentation.yml @@ -29,7 +29,8 @@ jobs: steps: - name: Checkout code uses: actions/checkout@master - - name: Check Markdown Links + + - name: Check Markdown Links uses: gaurav-nelson/github-action-markdown-link-check@master with: use-quiet-mode: 'yes' @@ -39,3 +40,23 @@ jobs: config-file: '.github/workflows/mlc_config.json' base-branch: 'master' folder-path: '.' + + test-vuepress-build: + name: Test Vuepress build + needs: files-changed + runs-on: ubuntu-latest + if: needs.files-changed.outputs.vuepress == 'true' + steps: + - name: Checkout code + uses: actions/checkout@master + + - name: Setup Node 20 + uses: actions/setup-node@v4 + with: + node-version: '20' + + - name: yarn-install + run: yarn install + + - name: yarn-docs:build + run: yarn run docs:build diff --git a/package.json b/package.json index 1cbccdb6d..8f222d653 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ "scripts": { "db:seed": "cd backend && yarn run db:seed", "db:reset": "cd backend && yarn run db:reset", + "docs:build": "NODE_OPTIONS=--openssl-legacy-provider vuepress build docs", "cypress:run": "cypress run --e2e --browser electron --config-file ./cypress/cypress.config.js", "cypress:open": "cypress open --e2e --browser electron --config-file ./cypress/cypress.config.js", "cucumber:setup": "cd backend && yarn run dev",