Skip to content

feat(chat): Sprint 2 - 消息编辑删除/AI触发/侧栏重构/Modal表单/成员面板 #772

feat(chat): Sprint 2 - 消息编辑删除/AI触发/侧栏重构/Modal表单/成员面板

feat(chat): Sprint 2 - 消息编辑删除/AI触发/侧栏重构/Modal表单/成员面板 #772

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') }}