Partly solve year 2015 (#4) #50
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PHP Composer | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
phpunit: | |
name: phpunit | |
runs-on: ${{ matrix.os }} | |
env: | |
PHP_EXTENSIONS: none, dom, json, libxml, simplexml, mbstring, openssl, pdo_sqlite, phar, soap, tokenizer, xml, xmlwriter | |
PHP_INI_VALUES: memory_limit=-1, assert.exception=1, zend.assertions=1, error_reporting=-1, log_errors_max_len=0, display_errors=On | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
php-version: | |
- "8.3" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install PHP with extensions | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
extensions: ${{ env.PHP_EXTENSIONS }} | |
ini-values: ${{ env.PHP_INI_VALUES }} | |
tools: none | |
- name: Install dependencies | |
run: composer install --prefer-dist --no-progress | |
- name: Run tests with phpunit | |
run: composer run-script test | |
coding-standard: | |
name: PSR12 coding standard | |
runs-on: ubuntu-latest | |
env: | |
PHP_EXTENSIONS: tokenizer, xml, xmlwriter | |
PHP_INI_VALUES: memory_limit=-1, assert.exception=1, zend.assertions=1, error_reporting=-1, log_errors_max_len=0, display_errors=On | |
strategy: | |
fail-fast: false | |
matrix: | |
php-version: | |
- "8.3" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install PHP with extensions | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
extensions: ${{ env.PHP_EXTENSIONS }} | |
ini-values: ${{ env.PHP_INI_VALUES }} | |
tools: none | |
- name: Validate composer.json and composer.lock | |
run: composer validate --strict | |
- name: Install dependencies | |
run: composer install --prefer-dist --no-progress | |
- name: Run phpcs | |
run: composer run-script phpcs |