mirror of
https://github.com/archtechx/gloss.git
synced 2025-12-12 11:14:04 +00:00
Support Laravel 9 (#3)
* wip * Update composer.json * Update composer.json Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com> * Update composer.json Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com> * Update ci.yml * Update composer.json * wip * wip * Update ci.yml * typehint -> type * Update phpstan.neon * Update composer.json * Update composer.json * wip * Update composer.json * Update composer.json * Update composer.json Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
This commit is contained in:
parent
1b1eca87c8
commit
263e0aa1cb
8 changed files with 98 additions and 56 deletions
26
.github/workflows/ci.yml
vendored
26
.github/workflows/ci.yml
vendored
|
|
@ -13,19 +13,25 @@ on:
|
|||
|
||||
jobs:
|
||||
phpunit:
|
||||
name: Tests (PHPUnit) L${{ matrix.laravel }}
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
laravel: [6, 8]
|
||||
|
||||
name: Tests (PHPUnit)
|
||||
runs-on: ubuntu-latest
|
||||
laravel: [6, 8, 9]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Install composer dependencies
|
||||
run: composer require "laravel/framework:^${{matrix.laravel}}.0.0"
|
||||
- name: Run tests
|
||||
run: vendor/bin/phpunit
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: '8.0'
|
||||
|
||||
- name: Install dependencies
|
||||
run: composer require "laravel/framework:^${{matrix.laravel}}.0"
|
||||
- name: Run tests
|
||||
run: vendor/bin/phpunit
|
||||
|
||||
phpstan:
|
||||
name: Static analysis (PHPStan)
|
||||
|
|
@ -46,7 +52,7 @@ jobs:
|
|||
- name: Install php-cs-fixer
|
||||
run: composer global require friendsofphp/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
|
||||
uses: EndBug/add-and-commit@v5
|
||||
with:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue