Skip to content

Feature/frontend

Feature/frontend #34

name: Frontend tests
on: [ push, pull_request ]
jobs:
tests:
runs-on: ubuntu-latest
defaults:
run:
working-directory: src
strategy:
matrix:
node-version: [ 22.x ]
pnpm-version: [ 9.15 ]
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: ${{ matrix.pnpm-version }}
run_install: false
- name: Install Node ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
cache-dependency-path: ./src/pnpm-lock.yaml
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run Vitest
run: LARAVEL_BYPASS_ENV_CHECK=1 pnpm test