Skip to content

Commit 89eed26

Browse files
author
Andrey Helldar
authored
Merge pull request #14 from TheDragonCode/2.x
Added Laravel 9 support
2 parents 816e5a8 + f79bcba commit 89eed26

File tree

3 files changed

+67
-13
lines changed

3 files changed

+67
-13
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: phpunit
1+
name: "Laravel 8"
22
on: [ push ]
33

44
jobs:
@@ -8,11 +8,11 @@ jobs:
88
strategy:
99
fail-fast: true
1010
matrix:
11-
php: [ "7.3", "7.4", "8.0" ]
11+
php: [ "7.3", "7.4", "8.0", "8.1" ]
1212
laravel: [ "8.0" ]
1313
psql: [ "9", "10", "11", "12", "13", "14" ]
1414

15-
name: php ${{ matrix.php }}, l ${{ matrix.laravel }}, pg ${{ matrix.psql }}
15+
name: php ${{ matrix.php }}, pg ${{ matrix.psql }}
1616

1717
services:
1818
mysql:

.github/workflows/laravel-9.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: "Laravel 9"
2+
on: [ push ]
3+
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
8+
strategy:
9+
fail-fast: true
10+
matrix:
11+
php: [ "8.0", "8.1" ]
12+
laravel: [ "9.0" ]
13+
psql: [ "9", "10", "11", "12", "13", "14" ]
14+
15+
name: php ${{ matrix.php }}, pg ${{ matrix.psql }}
16+
17+
services:
18+
mysql:
19+
image: mysql:5.7
20+
env:
21+
MYSQL_ROOT_PASSWORD: root
22+
MYSQL_DATABASE: default
23+
ports:
24+
- 3306:3306
25+
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
26+
27+
postgres:
28+
image: postgres:${{ matrix.psql }}-alpine
29+
ports:
30+
- 5432:5432
31+
env:
32+
POSTGRES_DB: default
33+
POSTGRES_USER: root
34+
POSTGRES_PASSWORD: root
35+
36+
steps:
37+
- name: Checkout code
38+
uses: actions/checkout@v2
39+
40+
- name: Setup PHP
41+
uses: shivammathur/setup-php@v2
42+
with:
43+
php-version: ${{ matrix.php }}
44+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, gd, redis, pdo_mysql, pdo_pgsql
45+
coverage: none
46+
47+
- name: Install dependencies
48+
run: composer require --dev laravel/framework:^${{ matrix.laravel }}
49+
50+
- name: Execute tests
51+
run: sudo vendor/bin/phpunit
52+
env:
53+
MYSQL_HOST: 127.0.0.1
54+
PGSQL_HOST: 127.0.0.1

composer.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "dragon-code/migrate-db",
33
"description": "Easy data transfer from one database to another",
4-
"type": "library",
54
"license": "MIT",
5+
"type": "library",
66
"keywords": [
77
"database",
88
"migrating",
@@ -24,21 +24,23 @@
2424
"source": "https://github.com/TheDragonCode/migrate-db"
2525
},
2626
"require": {
27-
"php": "^7.3|^8.0",
27+
"php": "^7.3 || ^8.0",
2828
"ext-pdo": "*",
29-
"dragon-code/contracts": "^2.8",
30-
"dragon-code/support": "^5.0",
31-
"illuminate/contracts": "^8.0",
32-
"illuminate/database": "^8.0",
33-
"illuminate/support": "^8.0"
29+
"dragon-code/contracts": "^2.15",
30+
"dragon-code/support": "^5.6",
31+
"illuminate/contracts": "^8.0 || ^9.0",
32+
"illuminate/database": "^8.0 || ^9.0",
33+
"illuminate/support": "^8.0 || ^9.0"
3434
},
3535
"require-dev": {
3636
"ext-pdo_mysql": "*",
3737
"ext-pdo_pgsql": "*",
3838
"mockery/mockery": "^1.0",
39-
"orchestra/testbench": "^6.0",
39+
"orchestra/testbench": "^6.0 || ^7.0",
4040
"phpunit/phpunit": "^9.0"
4141
},
42+
"minimum-stability": "stable",
43+
"prefer-stable": true,
4244
"autoload": {
4345
"psr-4": {
4446
"DragonCode\\MigrateDB\\": "src"
@@ -53,8 +55,6 @@
5355
"preferred-install": "dist",
5456
"sort-packages": true
5557
},
56-
"minimum-stability": "stable",
57-
"prefer-stable": true,
5858
"extra": {
5959
"laravel": {
6060
"providers": [

0 commit comments

Comments
 (0)