docs: 同步工作区权威 web-contracts.md 的 Content-Signal 中性化 #173
This file contains hidden or 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: DP大师 CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: dp-master-ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| verify: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: site | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| with: | |
| # routeLastModified is derived from git log, so a shallow clone is not deterministic. | |
| fetch-depth: 0 | |
| - name: Set up pnpm | |
| uses: pnpm/action-setup@v6 | |
| with: | |
| package_json_file: site/package.json | |
| - name: Set up Node | |
| uses: actions/setup-node@v7 | |
| with: | |
| node-version-file: site/.node-version | |
| cache: pnpm | |
| cache-dependency-path: site/pnpm-lock.yaml | |
| - name: Install locked dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Install browser engines | |
| run: pnpm exec playwright install --with-deps chromium firefox webkit | |
| - name: Verify content, tests, lint, build, browser routes, and assets | |
| run: pnpm verify | |
| - name: Ensure generated content is committed | |
| run: git diff --exit-code -- src/data/problems.ts |