refactor documentation check workflow

This commit is contained in:
mahula 2023-11-27 10:09:43 +01:00
parent d0eedae61d
commit 68c8128405
2 changed files with 23 additions and 1 deletions

View File

@ -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

View File

@ -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",