Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: phpunit
name: "Laravel 8"
on: [ push ]

jobs:
Expand All @@ -8,11 +8,11 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [ "7.3", "7.4", "8.0" ]
php: [ "7.3", "7.4", "8.0", "8.1" ]
laravel: [ "8.0" ]
psql: [ "9", "10", "11", "12", "13", "14" ]

name: php ${{ matrix.php }}, l ${{ matrix.laravel }}, pg ${{ matrix.psql }}
name: php ${{ matrix.php }}, pg ${{ matrix.psql }}

services:
mysql:
Expand Down
54 changes: 54 additions & 0 deletions .github/workflows/laravel-9.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: "Laravel 9"
on: [ push ]

jobs:
build:
runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
php: [ "8.0", "8.1" ]
laravel: [ "9.0" ]
psql: [ "9", "10", "11", "12", "13", "14" ]

name: php ${{ matrix.php }}, pg ${{ matrix.psql }}

services:
mysql:
image: mysql:5.7
env:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: default
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3

postgres:
image: postgres:${{ matrix.psql }}-alpine
ports:
- 5432:5432
env:
POSTGRES_DB: default
POSTGRES_USER: root
POSTGRES_PASSWORD: root

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, gd, redis, pdo_mysql, pdo_pgsql
coverage: none

- name: Install dependencies
run: composer require --dev laravel/framework:^${{ matrix.laravel }}

- name: Execute tests
run: sudo vendor/bin/phpunit
env:
MYSQL_HOST: 127.0.0.1
PGSQL_HOST: 127.0.0.1
20 changes: 10 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "dragon-code/migrate-db",
"description": "Easy data transfer from one database to another",
"type": "library",
"license": "MIT",
"type": "library",
"keywords": [
"database",
"migrating",
Expand All @@ -24,21 +24,23 @@
"source": "https://github.com/TheDragonCode/migrate-db"
},
"require": {
"php": "^7.3|^8.0",
"php": "^7.3 || ^8.0",
"ext-pdo": "*",
"dragon-code/contracts": "^2.8",
"dragon-code/support": "^5.0",
"illuminate/contracts": "^8.0",
"illuminate/database": "^8.0",
"illuminate/support": "^8.0"
"dragon-code/contracts": "^2.15",
"dragon-code/support": "^5.6",
"illuminate/contracts": "^8.0 || ^9.0",
"illuminate/database": "^8.0 || ^9.0",
"illuminate/support": "^8.0 || ^9.0"
},
"require-dev": {
"ext-pdo_mysql": "*",
"ext-pdo_pgsql": "*",
"mockery/mockery": "^1.0",
"orchestra/testbench": "^6.0",
"orchestra/testbench": "^6.0 || ^7.0",
"phpunit/phpunit": "^9.0"
},
"minimum-stability": "stable",
"prefer-stable": true,
"autoload": {
"psr-4": {
"DragonCode\\MigrateDB\\": "src"
Expand All @@ -53,8 +55,6 @@
"preferred-install": "dist",
"sort-packages": true
},
"minimum-stability": "stable",
"prefer-stable": true,
"extra": {
"laravel": {
"providers": [
Expand Down