Skip to content

Bump vite from 4.5.3 to 4.5.5 in /laravel (#325) #527

Bump vite from 4.5.3 to 4.5.5 in /laravel (#325)

Bump vite from 4.5.3 to 4.5.5 in /laravel (#325) #527

Workflow file for this run

name: Laravel Tests
on:
push:
branches:
- main
tags:
- "v*"
pull_request:
branches: [main]
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
tests:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./laravel
# Service container Mysql mysql
services:
# Label used to access the service container
mysql:
# Docker Hub image (also with version)
image: mysql:5.7
env:
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: testing
## map the "external" 33306 port with the "internal" 3306
ports:
- 33306:3306
# Set health checks to wait until mysql database has started (it takes some seconds to start)
options: >-
--health-cmd="mysqladmin ping"
--health-interval=10s
--health-timeout=5s
--health-retries=3
strategy:
fail-fast: true
matrix:
php: [8.1, 8.2]
name: PHP ${{ matrix.php }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, mysql, pdo_mysql
coverage: none
- name: Install Composer dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Install dependencies
run: npm ci
- name: Build js
run: npm run build
- name: Copy environment file
run: cp .env.example .env
- name: Disable test env file
run: rm .env.testing
- name: Generate app key
run: php artisan key:generate
- name: Execute tests
env:
DB_CONNECTION: mysql
DB_DATABASE: testing
DB_PORT: 33306
DB_USER: root
DB_PASSWORD: secret
run: vendor/bin/pest