Files
mealie/.github/workflows/test-frontend.yml
T

41 lines
880 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@v6
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"