2024-01-29 15:13:35 -05:00
|
|
|
name: Docs Testing
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- "docs/**"
|
|
|
|
types: [synchronize, opened, reopened, ready_for_review]
|
2024-02-01 10:08:41 -05:00
|
|
|
|
|
|
|
# cancel previous workflow jobs for PRs
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2024-01-29 15:13:35 -05:00
|
|
|
jobs:
|
|
|
|
build-deploy:
|
|
|
|
name: Build & Deploy
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
working-directory: docs
|
|
|
|
steps:
|
|
|
|
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
persist-credentials: false
|
|
|
|
submodules: recursive
|
2024-01-29 18:53:38 -05:00
|
|
|
- name: Set up Node.js 16
|
2024-02-01 10:06:48 -05:00
|
|
|
uses: actions/setup-node@v4
|
2024-01-29 18:53:38 -05:00
|
|
|
with:
|
|
|
|
node-version: '16'
|
2024-01-29 15:13:35 -05:00
|
|
|
- name: yarn install
|
|
|
|
run: |
|
|
|
|
yarn install --check-cache
|
|
|
|
- name: yarn typecheck
|
|
|
|
run: |
|
|
|
|
yarn typecheck
|
|
|
|
- name: yarn build
|
|
|
|
run: |
|
|
|
|
yarn build
|