feat: add CrystalMark #119
Workflow file for this run
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: Debug | |
on: | |
pull_request: | |
branches: | |
- next | |
paths: | |
- "src/**" | |
- "templates/**" | |
- "tasks/**" | |
- ".github/**" | |
jobs: | |
serve: | |
runs-on: windows-2019 | |
steps: | |
# 获取仓库源码 | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
ref: ${{ github.ref }} | |
# 缓存 node_modules | |
- uses: actions/cache@v4 | |
with: | |
path: "**/node_modules" | |
key: ${{ runner.os }}-modules-${{ hashFiles('**/pnpm-lock.yaml') }} | |
# 安装依赖 | |
- name: Install dependencies | |
run: npm install -g pnpm@9 && pnpm install | |
# 以Debug模式运行构建任务 | |
- name: Run scripts | |
run: pnpm dev -g -e "GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}" |