PHP Classes

File: .github/workflows/php-test.yml

Recommend this page to a friend!
  Classes of Tomáš Vojík   PHP Tournament Bracket Generator   .github/workflows/php-test.yml   Download  
File: .github/workflows/php-test.yml
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Tournament Bracket Generator
Organize the matches of teams in a tournament
Author: By
Last change: :art: Add code style check workflow to php-test.yml for PHP 8.4

Signed-off-by: Tomáš Vojík <[email protected]>
:art: Update php-test.yml to define test strategy and matrix for PHP 8.4

Signed-off-by: Tomáš Vojík <[email protected]>
:heavy_plus_sign: Add workflow dispatch and update PHP setup in CI configuration

Signed-off-by: Tomáš Vojík <[email protected]>
:arrow_up: Upgrade actions/cache to v4 in CI configuration

Signed-off-by: Tomáš Vojík <[email protected]>
:arrow_up: Update PHP version in CI configuration to 8.4

Signed-off-by: Tomáš Vojík <[email protected]>
Date: 5 months ago
Size: 3,471 bytes
 

Contents

Class file image Download
name: PHP Composer on: workflow_dispatch: push: branches: [ master ] pull_request: branches: [ master ] env: extensions: json, zlib, fileinfo, mbstring, intl defaultPHPVersion: '8.4' jobs: build: runs-on: ${{ matrix.operating-system }} strategy: matrix: operating-system: [ubuntu-latest] php-version: [ '8.4' ] dependencies: [''] coverage-driver: [xdebug] steps: - uses: actions/checkout@v4 - name: Setup PHP uses: shivammathur/setup-php@master with: php-version: ${{ env.defaultPHPVersion }} extensions: ${{ env.extensions }} ini-values: memory_limit=2G, display_errors=On, error_reporting=-1 tools: composer-require-checker:2.1.0 - name: Validate composer.json and composer.lock run: composer validate --strict - name: Cache Composer packages id: composer-cache uses: actions/cache@v4 with: path: vendor key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} restore-keys: | ${{ runner.os }}-php- - name: Install dependencies run: composer install --prefer-dist --no-progress cs: runs-on: ${{ matrix.operating-system }} strategy: matrix: operating-system: [ubuntu-latest] php-version: [ '8.4' ] dependencies: [''] coverage-driver: [xdebug] name: Check code style needs: build steps: - uses: actions/checkout@v4 - name: Setup PHP uses: shivammathur/setup-php@master with: php-version: ${{ env.defaultPHPVersion }} extensions: ${{ env.extensions }} ini-values: memory_limit=2G, display_errors=On, error_reporting=-1 - name: Cache Composer packages id: composer-cache uses: actions/cache@v4 with: path: vendor key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} restore-keys: | ${{ runner.os }}-php- - name: Install Composer dependencies run: | composer install --no-progress --prefer-dist --optimize-autoloader - name: Run code style checks run: composer run-script cs test: runs-on: ${{ matrix.operating-system }} strategy: matrix: operating-system: [ubuntu-latest] php-version: [ '8.4' ] dependencies: [''] coverage-driver: [xdebug] name: Run tests needs: build steps: - uses: actions/checkout@v4 - name: Setup PHP uses: shivammathur/setup-php@master with: php-version: ${{ env.defaultPHPVersion }} extensions: ${{ env.extensions }} ini-values: memory_limit=2G, display_errors=On, error_reporting=-1 - name: Cache Composer packages id: composer-cache uses: actions/cache@v4 with: path: vendor key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} restore-keys: | ${{ runner.os }}-php- - name: Install Composer dependencies run: | composer install --no-progress --prefer-dist --optimize-autoloader - name: Run test suite env: XDEBUG_MODE: coverage run: composer run-script test - name: Run mutation test suite env: XDEBUG_MODE: coverage run: composer run-script testMutation