Files
loongyan/.gitea/workflows/web-ci.yml
lzw-723 697dbe8d03
Some checks failed
Dart CI / build (push) Successful in 1m41s
Web CI / lint-test-build (push) Failing after 1m47s
修复前端工作流测试
2026-04-09 21:47:29 +08:00

51 lines
983 B
YAML

name: Web CI
on:
push:
branches: [ master ]
paths:
- 'web/**'
- '.gitea/workflows/web-ci.yml'
pull_request:
branches: [ master ]
paths:
- 'web/**'
- '.gitea/workflows/web-ci.yml'
jobs:
lint-test-build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./web
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
version: 10
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'pnpm'
cache-dependency-path: web/pnpm-lock.yaml
- name: Install dependencies
run: pnpm install
- name: Run lint
run: pnpm lint
- name: Run tests
run: |
pnpm exec playwright install
pnpm exec playwright install-deps
pnpm test
- name: Build
run: pnpm build