Skip to content

Commit

Permalink
Merge pull request #4 from TheDragonCode/2.x
Browse files Browse the repository at this point in the history
Added Laravel 9 support
  • Loading branch information
Andrey Helldar authored Jan 18, 2022
2 parents 9072ece + f61af96 commit 690d4a0
Show file tree
Hide file tree
Showing 6 changed files with 143 additions and 39 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/laravel-6.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: "Laravel 6"
on: [ push ]

jobs:
build:
runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
php: [ "7.3", "7.4", "8.0" ]
laravel: [ "6.0" ]

name: PHP ${{ matrix.php }}

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: curl, mbstring, zip, pcntl, pdo, pdo_sqlite, iconv
coverage: none

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

- name: Execute tests
run: sudo vendor/bin/phpunit
31 changes: 31 additions & 0 deletions .github/workflows/laravel-7.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: "Laravel 7"
on: [ push ]

jobs:
build:
runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
php: [ "7.3", "7.4", "8.0" ]
laravel: [ "7.0" ]

name: PHP ${{ matrix.php }}

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: curl, mbstring, zip, pcntl, pdo, pdo_sqlite, iconv
coverage: none

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

- name: Execute tests
run: sudo vendor/bin/phpunit
31 changes: 31 additions & 0 deletions .github/workflows/laravel-8.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: "Laravel 8"
on: [ push ]

jobs:
build:
runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
php: [ "7.3", "7.4", "8.0", "8.1" ]
laravel: [ "8.0" ]

name: PHP ${{ matrix.php }}

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: curl, mbstring, zip, pcntl, pdo, pdo_sqlite, iconv
coverage: none

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

- name: Execute tests
run: sudo vendor/bin/phpunit
32 changes: 32 additions & 0 deletions .github/workflows/laravel-9.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: "Laravel 9"
on: [ push ]

jobs:
build:
runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
php: [ "8.0", "8.1" ]
laravel: [ "9.0" ]

name: PHP ${{ matrix.php }}

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: curl, mbstring, zip, pcntl, pdo, pdo_sqlite, iconv
coverage: none

- name: Install dependencies
run: |
composer require laravel/framework:^${{ matrix.laravel }}
composer update --prefer-stable --prefer-dist --no-progress --no-interaction
- name: Execute tests
run: sudo vendor/bin/phpunit
31 changes: 0 additions & 31 deletions .github/workflows/phpunit.yml

This file was deleted.

26 changes: 18 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
{
"name": "dragon-code/env-sync-laravel",
"description": "env-sync package adapter for Laravel framework",
"type": "library",
"license": "MIT",
"keywords": ["env", "dotenv", "environment", "sync", "laravel", "framework", "dragon-code", "dragon", "andrey-helldar"],
"type": "library",
"keywords": [
"env",
"dotenv",
"environment",
"sync",
"laravel",
"framework",
"dragon-code",
"dragon",
"andrey-helldar"
],
"authors": [
{
"name": "Andrey Helldar",
Expand All @@ -15,15 +25,17 @@
"source": "https://github.com/TheDragonCode/env-sync-laravel"
},
"require": {
"php": "^7.3|^8.0",
"dragon-code/env-sync": "^3.0"
"php": "^7.3 || ^8.0",
"dragon-code/env-sync": "^3.1"
},
"require-dev": {
"dragon-code/support": "^5.2",
"dragon-code/support": "^5.6",
"mockery/mockery": "^1.3.1",
"orchestra/testbench": "^4.0|^5.0|^6.0",
"orchestra/testbench": "^4.0 || ^5.0 || ^6.0 || ^7.0",
"phpunit/phpunit": "^9.0"
},
"minimum-stability": "stable",
"prefer-stable": true,
"autoload": {
"psr-4": {
"DragonCode\\EnvSync\\Frameworks\\Laravel\\": "src"
Expand All @@ -38,8 +50,6 @@
"preferred-install": "dist",
"sort-packages": true
},
"minimum-stability": "stable",
"prefer-stable": true,
"extra": {
"laravel": {
"providers": [
Expand Down

0 comments on commit 690d4a0

Please sign in to comment.