Skip to content

Commit

Permalink
Run tests on 8.1 (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
RikudouSage authored Apr 8, 2022
1 parent 769509f commit ce235bb
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
version: ['7.3', '7.4']
version: ['7.3', '7.4', '8.0', '8.1']
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -28,7 +28,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
version: ['7.3', '7.4', '8.0']
version: ['7.3', '7.4', '8.0', '8.1']
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -45,7 +45,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
version: ['7.3', '7.4', '8.0']
version: ['7.3', '7.4', '8.0', '8.1']
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand Down Expand Up @@ -81,11 +81,14 @@ jobs:
name: Test 32 bit php
runs-on: ubuntu-latest
container: shivammathur/node:latest-i386
strategy:
matrix:
version: [ '7.3', '7.4', '8.0', '8.1' ]
steps:
- name: Install PHP
run: |
spc -U
spc --php-version "7.4" --extensions "bcmath, gmp" --coverage "xdebug"
spc --php-version "${{ matrix.version }}" --extensions "bcmath, gmp" --coverage "xdebug"
- name: Checkout Code
run: |
git clone $GITHUB_SERVER_URL/$GITHUB_REPOSITORY .
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
/vendor
/composer.lock
/.php_cs.cache
/.php-cs-fixer.cache
.phpunit.result.cache
/tmp
7 changes: 3 additions & 4 deletions .php_cs.dist → .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

return PhpCsFixer\Config::create()
return (new PhpCsFixer\Config())
->setRules([
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
Expand All @@ -10,7 +10,7 @@
],
'cast_spaces' => true,
'class_attributes_separation' => [
'elements' => ['method', 'property'],
'elements' => ['method' => 'one', 'property' => 'one', 'trait_import' => 'none'],
],
'combine_consecutive_unsets' => true,
'compact_nullable_typehint' => true,
Expand Down Expand Up @@ -46,7 +46,6 @@
'square_brace_block',
'throw',
'use',
'use_trait',
'switch',
'case',
'default',
Expand All @@ -70,7 +69,7 @@
'single_quote' => true,
'standardize_not_equals' => true,
'ternary_operator_spaces' => true,
'trailing_comma_in_multiline_array' => true,
'trailing_comma_in_multiline' => true,
'unary_operator_spaces' => true,
'visibility_required' => [
'elements' => ['property', 'method', 'const'],
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
}
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.14",
"friendsofphp/php-cs-fixer": "^3.0",
"phpstan/phpstan": "^0.12.63",
"php-coveralls/php-coveralls": "^2.1",
"phpunit/phpunit": "^9"
Expand Down

0 comments on commit ce235bb

Please sign in to comment.