-
Notifications
You must be signed in to change notification settings - Fork 1
29 lines (27 loc) · 1.03 KB
/
try-installation.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Try Install Package (Laravel 10 & 11)
env:
LOCAL_ENV: ${{ secrets.LOCAL_ENV }}
jobs:
build:
strategy:
fail-fast: false
matrix:
version: [ '^10.0', '^11.0' ]
runs-on: ubuntu-latest
steps:
- name: Setup PHP with coverage driver
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
coverage: pcov
- name: Setup and install package on Laravel
if: success()
run: |
sudo service mysql start
mysql -uroot -proot -e "CREATE DATABASE priority_queue;"
composer create-project laravel/laravel:${{ matrix.version }} laravel
cd laravel
composer require shipsaas/laravel-priority-queue
php artisan vendor:publish --tag=priority-queue-migrations
echo "$LOCAL_ENV" > .env
php artisan migrate