Skip to content

wip

wip #22

name: Vue Starter Kit Test
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [8.3, 8.4]
name: PHP ${{ matrix.php }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite
coverage: none
- name: Install Composer dependencies
run: composer install --prefer-dist --no-interaction --no-progress
- name: Install dependencies
run: npm ci
- name: Install Playwright browsers
run: npx playwright install --with-deps
- name: Build vue-starter-kit
run: composer run vue:build
env:
APP_BASE_PATH: ${{ github.workspace }}/vendor/laravel/vue-starter-kit
- name: Execute tests
run: php vendor/bin/pest
env:
APP_BASE_PATH: ${{ github.workspace }}/vendor/laravel/vue-starter-kit