Skip to content

Bump spatie/laravel-medialibrary from 10.11.4 to 10.12.2 #579

Bump spatie/laravel-medialibrary from 10.11.4 to 10.12.2

Bump spatie/laravel-medialibrary from 10.11.4 to 10.12.2 #579

Workflow file for this run

name: run-tests
on:
pull_request:
branches:
- main
jobs:
run-tests:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
extensions: mbstring, sqlite3, pdo_sqlite, exif, bcmath, gd, zip, intl, fileinfo, xml
- name: Copy .env
run: php -r "file_exists('.env') || copy('.env.ci', '.env');"
- name: Create Database
run: |
mkdir -p database
touch database/database.sqlite
- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Generate key
run: php artisan key:generate
- name: Directory Permissions
run: chmod -R 777 storage bootstrap/cache
- name: Execute tests (Unit and Feature tests) via PEST
run: vendor/bin/pest --ci --parallel
- name: pnpm
uses: pnpm/[email protected]
with:
version: latest
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: "18"
- name: Execute Cypress tests
uses: cypress-io/github-action@v6
with:
start: php artisan serve
wait-on-timeout: 60
browser: chrome
command: pnpm run cy:run --record
build: pnpm run build
install-command: pnpm install
record: true
env:
CYPRESS_baseUrl: http://127.0.0.1:8000
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}