Skip to content

Bump vite from 5.1.6 to 5.1.7 #190

Bump vite from 5.1.6 to 5.1.7

Bump vite from 5.1.6 to 5.1.7 #190

Workflow file for this run

# .github/workflows/tests.yml
name: Tests
on:
push:
branches:
- '!main'
- '!release-**'
pull_request:
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: "duster"
uses: tighten/duster-action@v2
with:
args: lint --using=pint -v
test:
needs: [lint] # needs lint job to pass first
runs-on: ubuntu-22.04
services:
mysql:
image: mysql:8.0
env:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_DATABASE: testing
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
- name: Prepare the environment
run: cp .env.testing .env
- name: Get composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Setup composer cache
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install composer dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Install npm dependencies and build assets
run: npm ci && npm run build
- name: Directory permissions
run: chmod -R 777 storage bootstrap/cache
- name: Test application install
run: php artisan app:install --force
env:
DB_CONNECTION: mysql
DB_HOST: 127.0.0.1
DB_PORT: ${{ job.services.mysql.ports['3306'] }}
DB_DATABASE: testing
DB_USERNAME: root
DB_PASSWORD: null
- name: Run tests
run: php artisan test
env:
DB_CONNECTION: mysql
DB_HOST: 127.0.0.1
DB_PORT: ${{ job.services.mysql.ports['3306'] }}
DB_DATABASE: testing
DB_USERNAME: root
DB_PASSWORD: null