Files
mealie/.github/workflows/test-frontend.yml
T
renovate[bot] 6f35f45387 chore(deps): update github-actions (major) (#9064)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-11-07 22:59:23 -06:00

41 lines
923 B
YAML

name: Frontend Lint and Test
on:
workflow_call:
inputs:
ref:
required: false
type: string
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
ref: ${{ inputs.ref || github.sha }}
- name: Set up tools
uses: ./.github/actions/setup-tools
with:
tools: node pnpm
cache-pnpm-store: true
- name: Install dependencies 👨🏻‍💻
run: pnpm install --prefer-offline
working-directory: "frontend"
- name: Prepare nuxt 🚀
run: pnpm nuxt prepare
working-directory: "frontend"
- name: Run linter 👀
run: pnpm lint --max-warnings=0
working-directory: "frontend"
- name: Run tests 🧪
run: pnpm test:ci
working-directory: "frontend"