Skip to content

Commit

Permalink
Laravel 10
Browse files Browse the repository at this point in the history
  • Loading branch information
tzurbaev committed Jun 1, 2023
1 parent 5680222 commit 8277b81
Show file tree
Hide file tree
Showing 11 changed files with 4,982 additions and 1,800 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[*.yml]
indent_size = 2
46 changes: 46 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: test

on: [push]

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: [8.2]

name: PHP${{ matrix.php }}

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

- name: Setup PHP
id: setup-php
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, bcmath, soap, intl, gd, exif, iconv
coverage: none

- name: Get Composer Cache Directory
id: get-composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Setup Cache
id: setup-cache
uses: actions/cache@v2
with:
path: ${{ steps.get-composer-cache.outputs.dir }}
key: composer-${{ matrix.php }}-${{ hashFiles('composer.json') }}

- name: Install dependencies
id: install-deps
run: composer install --no-interaction --prefer-dist

- name: Run tests
id: run-tests
run: vendor/bin/phpunit
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
.phpunit.result.cache
.php_cs
phpunit.xml
.phpunit.cache
29 changes: 29 additions & 0 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php

$finder = PhpCsFixer\Finder::create()->in([
__DIR__.'/config',
__DIR__.'/src',
__DIR__.'/tests',
]);

$config = new PhpCsFixer\Config();
$config->setFinder($finder);
$config->setUsingCache(false);
$config->setRules([
'@PSR2' => true,
'phpdoc_align' => ['tags' => ['method', 'param', 'return', 'throws', 'type', 'var']],
'phpdoc_no_empty_return' => true,
'phpdoc_order' => true,
'phpdoc_separation' => true,
'phpdoc_trim' => true,
'array_syntax' => ['syntax' => 'short'],
'no_unused_imports' => true,
'concat_space' => true,
'no_trailing_comma_in_singleline' => true,
'trailing_comma_in_multiline' => ['elements' => ['arrays']],
'whitespace_after_comma_in_array' => true,
'visibility_required' => ['elements' => ['property', 'method', 'const']],
'fully_qualified_strict_types' => true,
]);

return $config;
17 changes: 0 additions & 17 deletions .php_cs.dist

This file was deleted.

4 changes: 0 additions & 4 deletions .styleci.yml

This file was deleted.

15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

13 changes: 7 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@
}
],
"require": {
"php": ">=7.3",
"illuminate/support": "^6.0|^7.0|^8.0"
"php": "^8.2",
"illuminate/support": "^10.0"
},
"require-dev": {
"phpunit/phpunit": "^8.3",
"mockery/mockery": "^1.2",
"orchestra/testbench": "^4.0",
"friendsofphp/php-cs-fixer": "^2.16"
"phpunit/phpunit": "^10.0",
"mockery/mockery": "^1.5",
"orchestra/testbench": "^8.0",
"friendsofphp/php-cs-fixer": "^3.0",
"laravel/legacy-factories": "^1.3"
},
"autoload": {
"psr-4": {
Expand Down
Loading

0 comments on commit 8277b81

Please sign in to comment.