51 lines
1.0 KiB
YAML
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
|