Updating GH actions setup to include PHP 8.3 and switching them to newest LTS Ubuntu. #830
Workflow file for this run
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: CI | |
on: [push, pull_request] | |
jobs: | |
tests: | |
runs-on: ubuntu-24.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
php: ['8.2', '8.3'] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup PHP with pecl and extensions | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
tools: pecl,composer:v2 | |
coverage: xdebug | |
extensions: yaml,tokenizer,ldap,pdo,pdo_sqlite,zip,json,mbstring,iconv,zmq | |
ini-values: memory_limit=1G,opcache.enable_cli=0 | |
- run: php --version | |
# install | |
- run: composer install --no-interaction --prefer-dist | |
# script | |
- run: php ./vendor/nette/tester/src/tester.php -j 4 -C tests --coverage ./coverage.xml --coverage-src ./app | |
- uses: codecov/codecov-action@v1 | |
phpstan: | |
runs-on: ubuntu-24.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
php: ['8.2', '8.3'] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup PHP with pecl and extensions | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
tools: pecl,composer:v2 | |
extensions: yaml,tokenizer,ldap,pdo,pdo_sqlite,zip,json,mbstring,iconv,zmq | |
ini-values: memory_limit=1G,opcache.enable_cli=0 | |
- run: php --version | |
# install | |
- run: composer install --no-interaction --prefer-dist | |
# script | |
- run: vendor/bin/phpstan analyse -c phpstan/phpstan.neon app | |
phpstan-tests: | |
runs-on: ubuntu-24.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
php: ['8.2', '8.3'] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup PHP with pecl and extensions | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
tools: pecl,composer:v2 | |
extensions: yaml,tokenizer,ldap,pdo,pdo_sqlite,zip,json,mbstring,iconv,zmq | |
ini-values: memory_limit=1G,opcache.enable_cli=0 | |
- run: php --version | |
# install | |
- run: composer install --no-interaction --prefer-dist | |
# script | |
- run: vendor/bin/phpstan analyse -c phpstan/phpstan.neon tests |