JavaGuide/.github/workflows/test.yml

30 lines
533 B
YAML
Raw Normal View History

2023-04-28 18:00:51 +08:00
name: Docs Test
on:
- push
- pull_request
jobs:
test-docs:
name: Test docs
runs-on: ubuntu-latest
steps:
- name: Checkout
2023-12-30 17:15:15 +08:00
uses: actions/checkout@v4
2023-04-28 18:00:51 +08:00
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
run_install: true
- name: Setup Node.js
2023-12-30 17:15:15 +08:00
uses: actions/setup-node@v4
2023-04-28 18:00:51 +08:00
with:
2023-12-30 17:15:15 +08:00
node-version: 20
2023-04-28 18:00:51 +08:00
cache: pnpm
- name: Build test
env:
NODE_OPTIONS: --max_old_space_size=4096
run: pnpm docs:build