Add PHP 8.1 to shims and build (#1365)
* Add PHP 8.1 to shims and build * Lock psr/container version * Lock psr version * Restrict symfony component versions * Downgrade event-dispatcher-contracts * Update more package versions * php-cs fixes * style fix * cs-fixer file fix * Exclude resources dir from cs fixer * Ignore cs fixer env check * Update league/csv
This commit is contained in:
1
.github/scripts/build.sh
vendored
1
.github/scripts/build.sh
vendored
@@ -23,6 +23,7 @@ declare -a remove_files=(
|
||||
.eslintrc
|
||||
.php_cs
|
||||
.php_cs.cache
|
||||
.php-cs-fixer.php
|
||||
.phpstorm.meta.php
|
||||
.styleci.yml
|
||||
.phpunit.result.cache
|
||||
|
||||
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
@@ -2,12 +2,12 @@ name: 'Build'
|
||||
on: ['push', 'pull_request', 'workflow_dispatch', 'release']
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-18.04
|
||||
runs-on: ubuntu-20.04
|
||||
if: github.repository == 'nabeelio/phpvms'
|
||||
strategy:
|
||||
fail-fast: true
|
||||
matrix:
|
||||
php-versions: ['7.3', '7.4', '8.0']
|
||||
php-versions: ['7.3', '7.4', '8.0', '8.1']
|
||||
name: PHP ${{ matrix.php-versions }}
|
||||
env:
|
||||
extensions: intl, pcov, mbstring
|
||||
@@ -78,7 +78,8 @@ jobs:
|
||||
|
||||
- name: Run Tests
|
||||
run: |
|
||||
vendor/bin/php-cs-fixer fix --config=.php_cs -v --dry-run --diff --using-cache=no
|
||||
export PHP_CS_FIXER_IGNORE_ENV=1
|
||||
vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php -v --dry-run --diff --using-cache=no
|
||||
vendor/bin/phpunit --debug --verbose
|
||||
|
||||
# This runs after all of the tests, run have run. Creates a cleaned up version of the
|
||||
|
||||
Reference in New Issue
Block a user