diff --git a/.github/workflows/laravel-6.yml b/.github/workflows/laravel-6.yml new file mode 100644 index 0000000..edccc14 --- /dev/null +++ b/.github/workflows/laravel-6.yml @@ -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 diff --git a/.github/workflows/laravel-7.yml b/.github/workflows/laravel-7.yml new file mode 100644 index 0000000..8c76e6e --- /dev/null +++ b/.github/workflows/laravel-7.yml @@ -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 diff --git a/.github/workflows/laravel-8.yml b/.github/workflows/laravel-8.yml new file mode 100644 index 0000000..c497027 --- /dev/null +++ b/.github/workflows/laravel-8.yml @@ -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 diff --git a/.github/workflows/laravel-9.yml b/.github/workflows/laravel-9.yml new file mode 100644 index 0000000..a369b57 --- /dev/null +++ b/.github/workflows/laravel-9.yml @@ -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 diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml deleted file mode 100644 index d9668ab..0000000 --- a/.github/workflows/phpunit.yml +++ /dev/null @@ -1,31 +0,0 @@ -name : phpunit -on : [ push ] - -jobs : - build : - runs-on : ubuntu-latest - - strategy : - fail-fast : true - matrix : - php : [ "7.3", "7.4", "8.0" ] - laravel : [ "6.0", "7.0", "8.0" ] - - name : PHP ${{ matrix.php }}, Laravel ${{ matrix.laravel }} - - 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 }} - - - name : Execute tests - run : sudo vendor/bin/phpunit diff --git a/composer.json b/composer.json index a146af9..c438bdb 100644 --- a/composer.json +++ b/composer.json @@ -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", @@ -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" @@ -38,8 +50,6 @@ "preferred-install": "dist", "sort-packages": true }, - "minimum-stability": "stable", - "prefer-stable": true, "extra": { "laravel": { "providers": [