Add docusaurus test build pipeline (#302)
Co-authored-by: Hien To <tominhhien97@gmail.com>
This commit is contained in:
parent
b6a58df463
commit
0cdff4f06b
29
.github/workflows/jan-docs-test.yml
vendored
Normal file
29
.github/workflows/jan-docs-test.yml
vendored
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
name: Jan Docs Test Build
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
paths:
|
||||||
|
- 'docs/**'
|
||||||
|
- '.github/workflows/deploy-jan-docs.yml'
|
||||||
|
- '.github/workflows/jan-docs-test.yml'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
name: Test Build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 18
|
||||||
|
cache: 'yarn'
|
||||||
|
cache-dependency-path: './docs/yarn.lock'
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: yarn install
|
||||||
|
working-directory: docs
|
||||||
|
- name: Test Build Command
|
||||||
|
run: yarn build
|
||||||
|
working-directory: docs
|
||||||
Loading…
x
Reference in New Issue
Block a user