From b5472e5f23a1982b98260cca3546fbf133c604ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20Andor?= Date: Sun, 9 Jan 2022 15:23:32 +0100 Subject: [PATCH] Issue #209 - PHP 8.1 compatibility - Add GitHub Actions workflows/qa.xml --- .editorconfig | 4 --- .github/workflows/qa.yml | 60 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/qa.yml diff --git a/.editorconfig b/.editorconfig index 1492202b..56f3b6bf 100644 --- a/.editorconfig +++ b/.editorconfig @@ -10,7 +10,3 @@ trim_trailing_whitespace = true [*.md] trim_trailing_whitespace = false - -[*.yml] -indent_style = space -indent_size = 2 diff --git a/.github/workflows/qa.yml b/.github/workflows/qa.yml new file mode 100644 index 00000000..956e1ebe --- /dev/null +++ b/.github/workflows/qa.yml @@ -0,0 +1,60 @@ +## +# @link https://github.com/shivammathur/setup-php +## + +'on': + push: + branches: + - '3.x' + - '3.x-*' + pull_request: + branches: + - '3.x' + +jobs: + run: + strategy: + matrix: + operating-system: + - 'ubuntu-latest' + #- 'windows-latest' + #- 'macOS-latest' + php-versions: + - '7.0' + - '7.1' + - '7.2' + - '7.3' + - '7.4' + - '8.0' + - '8.1' + name: 'PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}' + runs-on: '${{ matrix.operating-system }}' + steps: + - + name: 'Checkout' + uses: 'actions/checkout@v2' + - + name: 'Install PHP' + uses: 'shivammathur/setup-php@v2' + with: + php-version: '${{ matrix.php-versions }}' + extensions: 'intl, mbstring' + - + name: 'Check tools' + run: | + git -v + php -v + php -m + composer --version + - + name: 'composer install' + run: | + composer install + - + name: 'Lint - composer' + run: | + composer validate + - + name: 'Test' + run: | + "$(composer config bin-dir)/phpunit"