1
0
Fork 0
mirror of https://github.com/archtechx/gloss.git synced 2025-12-12 03:04:04 +00:00
This commit is contained in:
Abrar Ahmad 2022-01-25 18:11:51 +05:00
parent be9cefd4b3
commit 6fca70a61d
2 changed files with 14 additions and 6 deletions

View file

@ -17,13 +17,21 @@ jobs:
strategy: strategy:
matrix: matrix:
laravel: [6, 8, 9] laravel: [6, 8, 9]
include:
- laravel: 6
testbench: ^4.0
- laravel: 8
testbench: ^6.0
- laravel: 9
testbench: ^7.0
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Install composer dependencies - name: Install composer dependencies
run: composer require "laravel/framework:^${{matrix.laravel}}.0" run: composer require "laravel/framework:^${{matrix.laravel}}.0" "orchestra/testbench:${{ matrix.testbench }}"
- name: Run tests - name: Run tests
run: vendor/bin/phpunit run: vendor/bin/phpunit
@ -46,7 +54,7 @@ jobs:
- name: Install php-cs-fixer - name: Install php-cs-fixer
run: composer global require friendsofphp/php-cs-fixer run: composer global require friendsofphp/php-cs-fixer
- name: Run php-cs-fixer - name: Run php-cs-fixer
run: $HOME/.composer/vendor/bin/php-cs-fixer fix --config=.php_cs.php run: $HOME/.composer/vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php
- name: Commit changes from php-cs-fixer - name: Commit changes from php-cs-fixer
uses: EndBug/add-and-commit@v5 uses: EndBug/add-and-commit@v5
with: with:

View file

@ -16,13 +16,13 @@
} }
}, },
"require": { "require": {
"php": "^8.0", "php": "^7.2|^8.0",
"illuminate/translation": "^6.0||^8.0||^9.0" "illuminate/translation": "^6.0|^8.0|^9.0"
}, },
"require-dev": { "require-dev": {
"orchestra/testbench": "^4.0||^6.0||^7.0", "orchestra/testbench": "^4.0|^6.0|^7.0",
"phpunit/phpunit": "^9.5", "phpunit/phpunit": "^9.5",
"nunomaduro/larastan": "^0.6.11" "nunomaduro/larastan": "^1.0"
}, },
"extra": { "extra": {
"laravel": { "laravel": {