mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2026-07-31 15:59:34 -04:00
49 lines
990 B
YAML
49 lines
990 B
YAML
name: Test Frontend
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- "frontend/**"
|
|
- ".github/workflows/frontend-test.yml"
|
|
push:
|
|
paths:
|
|
- "frontend/**"
|
|
- ".github/workflows/frontend-test.yml"
|
|
|
|
jobs:
|
|
quality:
|
|
name: Frontend Quality Checks
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: pnpm/action-setup@v4
|
|
with:
|
|
version: 10.32.1
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
cache: pnpm
|
|
cache-dependency-path: frontend/pnpm-lock.yaml
|
|
|
|
- name: install dependencies
|
|
working-directory: frontend
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: run lint
|
|
working-directory: frontend
|
|
run: pnpm run lint
|
|
|
|
- name: run svelte check
|
|
working-directory: frontend
|
|
run: pnpm run check
|
|
|
|
- name: build frontend
|
|
working-directory: frontend
|
|
run: pnpm run build
|