Test Release #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Documentation Deployment | |
on: | |
pull_request: | |
branches: | |
- main | |
# Review gh actions docs if you want to further define triggers, paths, etc | |
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on | |
jobs: | |
test-deploy: | |
name: Test Documentation Deployment | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set node version | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Cache Doc dependencies | |
id: cache-doc | |
uses: actions/cache@v3 | |
with: | |
path: 'doc/node_modules' | |
key: ${{ runner.os }}-node-${{ hashFiles('doc/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-node-${{ hashFiles('doc/yarn.lock') }} | |
${{ runner.os }}-node- | |
- name: Install Doc dependencies | |
if: steps.cache-doc.outputs.cache-hit != 'true' | |
working-directory: doc | |
run: yarn install --immutable | |
- name: Test build website | |
working-directory: doc | |
run: yarn build |