Skip to content
This repository was archived by the owner on Feb 20, 2025. It is now read-only.

Commit 690d4a0

Browse files
author
Andrey Helldar
authored
Merge pull request #4 from TheDragonCode/2.x
Added Laravel 9 support
2 parents 9072ece + f61af96 commit 690d4a0

File tree

6 files changed

+143
-39
lines changed

6 files changed

+143
-39
lines changed

Diff for: .github/workflows/laravel-6.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: "Laravel 6"
2+
on: [ push ]
3+
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
8+
strategy:
9+
fail-fast: true
10+
matrix:
11+
php: [ "7.3", "7.4", "8.0" ]
12+
laravel: [ "6.0" ]
13+
14+
name: PHP ${{ matrix.php }}
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v2
19+
20+
- name: Setup PHP
21+
uses: shivammathur/setup-php@v2
22+
with:
23+
php-version: ${{ matrix.php }}
24+
extensions: curl, mbstring, zip, pcntl, pdo, pdo_sqlite, iconv
25+
coverage: none
26+
27+
- name: Install dependencies
28+
run: composer require --dev laravel/framework:^${{ matrix.laravel }}
29+
30+
- name: Execute tests
31+
run: sudo vendor/bin/phpunit

Diff for: .github/workflows/laravel-7.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: "Laravel 7"
2+
on: [ push ]
3+
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
8+
strategy:
9+
fail-fast: true
10+
matrix:
11+
php: [ "7.3", "7.4", "8.0" ]
12+
laravel: [ "7.0" ]
13+
14+
name: PHP ${{ matrix.php }}
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v2
19+
20+
- name: Setup PHP
21+
uses: shivammathur/setup-php@v2
22+
with:
23+
php-version: ${{ matrix.php }}
24+
extensions: curl, mbstring, zip, pcntl, pdo, pdo_sqlite, iconv
25+
coverage: none
26+
27+
- name: Install dependencies
28+
run: composer require --dev laravel/framework:^${{ matrix.laravel }}
29+
30+
- name: Execute tests
31+
run: sudo vendor/bin/phpunit

Diff for: .github/workflows/laravel-8.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: "Laravel 8"
2+
on: [ push ]
3+
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
8+
strategy:
9+
fail-fast: true
10+
matrix:
11+
php: [ "7.3", "7.4", "8.0", "8.1" ]
12+
laravel: [ "8.0" ]
13+
14+
name: PHP ${{ matrix.php }}
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v2
19+
20+
- name: Setup PHP
21+
uses: shivammathur/setup-php@v2
22+
with:
23+
php-version: ${{ matrix.php }}
24+
extensions: curl, mbstring, zip, pcntl, pdo, pdo_sqlite, iconv
25+
coverage: none
26+
27+
- name: Install dependencies
28+
run: composer require --dev laravel/framework:^${{ matrix.laravel }}
29+
30+
- name: Execute tests
31+
run: sudo vendor/bin/phpunit

Diff for: .github/workflows/laravel-9.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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+
14+
name: PHP ${{ matrix.php }}
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v2
19+
20+
- name: Setup PHP
21+
uses: shivammathur/setup-php@v2
22+
with:
23+
php-version: ${{ matrix.php }}
24+
extensions: curl, mbstring, zip, pcntl, pdo, pdo_sqlite, iconv
25+
coverage: none
26+
27+
- name: Install dependencies
28+
run: |
29+
composer require laravel/framework:^${{ matrix.laravel }}
30+
composer update --prefer-stable --prefer-dist --no-progress --no-interaction
31+
- name: Execute tests
32+
run: sudo vendor/bin/phpunit

Diff for: .github/workflows/phpunit.yml

-31
This file was deleted.

Diff for: composer.json

+18-8
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
11
{
22
"name": "dragon-code/env-sync-laravel",
33
"description": "env-sync package adapter for Laravel framework",
4-
"type": "library",
54
"license": "MIT",
6-
"keywords": ["env", "dotenv", "environment", "sync", "laravel", "framework", "dragon-code", "dragon", "andrey-helldar"],
5+
"type": "library",
6+
"keywords": [
7+
"env",
8+
"dotenv",
9+
"environment",
10+
"sync",
11+
"laravel",
12+
"framework",
13+
"dragon-code",
14+
"dragon",
15+
"andrey-helldar"
16+
],
717
"authors": [
818
{
919
"name": "Andrey Helldar",
@@ -15,15 +25,17 @@
1525
"source": "https://github.com/TheDragonCode/env-sync-laravel"
1626
},
1727
"require": {
18-
"php": "^7.3|^8.0",
19-
"dragon-code/env-sync": "^3.0"
28+
"php": "^7.3 || ^8.0",
29+
"dragon-code/env-sync": "^3.1"
2030
},
2131
"require-dev": {
22-
"dragon-code/support": "^5.2",
32+
"dragon-code/support": "^5.6",
2333
"mockery/mockery": "^1.3.1",
24-
"orchestra/testbench": "^4.0|^5.0|^6.0",
34+
"orchestra/testbench": "^4.0 || ^5.0 || ^6.0 || ^7.0",
2535
"phpunit/phpunit": "^9.0"
2636
},
37+
"minimum-stability": "stable",
38+
"prefer-stable": true,
2739
"autoload": {
2840
"psr-4": {
2941
"DragonCode\\EnvSync\\Frameworks\\Laravel\\": "src"
@@ -38,8 +50,6 @@
3850
"preferred-install": "dist",
3951
"sort-packages": true
4052
},
41-
"minimum-stability": "stable",
42-
"prefer-stable": true,
4353
"extra": {
4454
"laravel": {
4555
"providers": [

0 commit comments

Comments
 (0)