Skip to content

Make all packages laravel 11 compatible #238

Make all packages laravel 11 compatible

Make all packages laravel 11 compatible #238

Workflow file for this run

name: CI
on:
push:
jobs:
tests:
name: Tests
runs-on: ubuntu-22.04
services:
mysql:
image: mysql:5.7
env:
MYSQL_DATABASE: nova_pages_tool_testing
MYSQL_ROOT_PASSWORD: root
ports:
- 3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- uses: shivammathur/setup-php@v2
with:
php-version: 8
env:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v3
- name: Get Composer Cache Directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Validate Composer files
run: composer validate --ansi
- name: Install PHP dependencies
run: |
composer config --ansi -- http-basic.nova.laravel.com "${{ secrets.NOVA_USERNAME }}" "${{ secrets.NOVA_PASSWORD }}"
composer install --prefer-dist --no-interaction --ansi
- name: Run PHP tests
run: composer test
env:
DB_HOST: 127.0.0.1
DB_PORT: ${{ job.services.mysql.ports['3306'] }}
DB_DATABASE: nova_pages_tool_testing
DB_USER: root
DB_PASSWORD: root
- name: Upload logs
uses: actions/upload-artifact@v2
if: failure()
with:
name: Laravel logs
path: storage/logs/laravel.log
prettier:
name: Code style
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '12.x'
- run: npm install
- run: npx prettier --check .