Files
loongyan/.gitea/workflows/web-ci.yml
lzw-723 8c5f735697
All checks were successful
Dart CI / build (push) Successful in 37s
Web CI / lint-test-build (push) Successful in 2m4s
修复前端构建工作流
2026-04-09 22:03:46 +08:00

51 lines
1.0 KiB
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: export BETTER_AUTH_SECRET="place-holder-for-build" && pnpm build