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,6 +29,7 @@ jobs:
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@master uses: actions/checkout@master
- name: Check Markdown Links - name: Check Markdown Links
uses: gaurav-nelson/github-action-markdown-link-check@master uses: gaurav-nelson/github-action-markdown-link-check@master
with: with:
@ -39,3 +40,23 @@ jobs:
config-file: '.github/workflows/mlc_config.json' config-file: '.github/workflows/mlc_config.json'
base-branch: 'master' base-branch: 'master'
folder-path: '.' 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": { "scripts": {
"db:seed": "cd backend && yarn run db:seed", "db:seed": "cd backend && yarn run db:seed",
"db:reset": "cd backend && yarn run db:reset", "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: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", "cypress:open": "cypress open --e2e --browser electron --config-file ./cypress/cypress.config.js",
"cucumber:setup": "cd backend && yarn run dev", "cucumber:setup": "cd backend && yarn run dev",