使用Action保证代码格式 #279
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: GitHub Pages for PR | |
on: [pull_request] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
node-version: [16.x] | |
os: [ubuntu-latest] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
registry-url: https://registry.npmjs.org/ | |
- name: 📦 Install Dependencies | |
run: yarn | |
- name: 🧐 Check Code Types | |
run: yarn docs:tsc | |
- name: 🔧 Check Code Format | |
run: yarn docs:lint | |
- name: 🌌 Build VitePress Docs | |
run: yarn docs:build |