chore: 更新 setup-node-environment 版本并添加静态代码分析工作流
All checks were successful
/ depcheck (push) Successful in 2m24s
/ lint-build-and-check (push) Successful in 2m35s
/ build-and-deploy-to-vercel (push) Successful in 3m4s
/ surge (push) Successful in 15m42s
/ playwright (push) Successful in 3m11s

This commit is contained in:
严浩
2025-03-10 11:00:34 +08:00
parent 8733c3e42e
commit ca1521328c
5 changed files with 27 additions and 11 deletions

View File

@ -11,20 +11,20 @@ jobs:
outputs:
url: ${{ steps.surge_deploy.outputs.url }}
steps:
- uses: yanhao98/composite-actions/setup-node-environment@main
- uses: yanhao98/composite-actions/setup-node-environment@e52959e47d50719e0882fc5be361021910ed481a
- run: pnpm run build-only
env:
VITE_BUILD_COMMIT: ${{ github.sha }}
- name: 部署到 Surge
id: surge_deploy
if: ${{ github.actor != 'nektos/act' }} # https://nektosact.com/usage/index.html#skipping-steps
uses: yanhao98/composite-actions/deploy-dist-to-surge@main
uses: yanhao98/composite-actions/deploy-dist-to-surge@e52959e47d50719e0882fc5be361021910ed481a
playwright:
needs: surge
runs-on: ubuntu-latest
container: yanhao98/runner-images:pnpm-with-playwright
steps:
- uses: yanhao98/composite-actions/setup-node-environment@main
- uses: yanhao98/composite-actions/setup-node-environment@e52959e47d50719e0882fc5be361021910ed481a
- name: Install Playwright Browsers
run: pnpm exec playwright install --with-deps
- name: Run Playwright tests