diff --git a/.editorconfig b/.editorconfig index 1492202..56f3b6b 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 0000000..956e1eb --- /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"