refactor(chat): Phase C+E+F — ctrlBar模板化、流式竞态修复、MLS大群边界处理 #786
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: Verify Shells | |
| on: | |
| push: | |
| paths: | |
| - 'src/public/parts/shells/**/*.mjs' | |
| tags-ignore: | |
| - '*' | |
| branches: | |
| - '*' | |
| workflow_dispatch: | |
| jobs: | |
| verify-shells: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - uses: denoland/setup-deno@v2 | |
| id: deno | |
| with: | |
| deno-version: vx.x.x | |
| cache: true | |
| - uses: actions/cache@v4 | |
| with: | |
| path: ./node_modules | |
| key: fount-CI-node-modules | |
| - name: Install dependencies | |
| run: | | |
| for i in $(seq 1 13); do | |
| deno install --allow-scripts --allow-all -c "./deno.json" --entrypoint "./src/server/index.mjs" && break | |
| echo "Attempt $i/13 failed, retrying..." | |
| done | |
| - name: test each shell | |
| run: | | |
| deno run --allow-scripts --allow-all -c "./deno.json" --v8-flags=--expose-gc ./.github/workflows/verify_shells.mjs | |
| - name: Delete Previous Cache # 删除之前的缓存确保缓存随着项目运行而更新 | |
| continue-on-error: true | |
| shell: bash | |
| run: | | |
| gh extension install actions/gh-actions-cache | |
| gh actions-cache delete "fount-CI-node-modules" --confirm | |
| gh actions-cache delete "deno-cache-${{ runner.os }}-${{ runner.arch }}-${{ github.job }}-${{ hashFiles('**/deno.lock') }}" --confirm | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Save Cache | |
| uses: actions/cache/save@v4 | |
| with: | |
| path: ./node_modules | |
| key: fount-CI-node-modules | |
| - name: get deno dir | |
| shell: bash | |
| run: echo "DENO_DIR=$(deno info --json | jq -r '.denoDir')" >> $GITHUB_ENV | |
| - name: Save Cache | |
| uses: actions/cache/save@v4 | |
| with: | |
| path: ${{ env.DENO_DIR }} | |
| key: deno-cache-${{ runner.os }}-${{ runner.arch }}-${{ github.job }}-${{ hashFiles('**/deno.lock') }} |