FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Do not show "ERR" if baseline not there (#1154) · phpbench/phpbench@eac0a11 · GitHub

Do not show "ERR" if baseline not there (#1154) #1300

Do not show "ERR" if baseline not there (#1154)

Do not show "ERR" if baseline not there (#1154) #1300

Workflow file for this run

This file contains hidden or 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:
pull_request:
push:
branches:
- 'master'
env:
fail-fast: true
TZ: "Europe/Paris"
REQUIRED_PHP_EXTENSIONS: "dom, iconv, json, pcre, reflection, spl, tokenizer, xdebug"
jobs:
composer-validate:
name: "Composer validate (${{ matrix.php-version }})"
runs-on: "ubuntu-latest"
strategy:
matrix:
php-version:
- '8.2'
steps:
-
name: "Checkout code"
uses: "actions/checkout@v3"
-
name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
php-version: "${{ matrix.php-version }}"
tools: composer:v2
-
name: "Validate composer.json"
run: "composer validate --strict --no-check-lock"
composer-normalize:
needs:
- "composer-validate"
name: "Composer Normalize (${{ matrix.php-version }})"
runs-on: "ubuntu-latest"
strategy:
matrix:
php-version:
- '8.2'
steps:
-
name: "Checkout code"
uses: "actions/checkout@v3"
-
name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
extensions: "${{ env.REQUIRED_PHP_EXTENSIONS }}"
php-version: "${{ matrix.php-version }}"
tools: composer:v2
-
name: "Composer install"
uses: "ramsey/composer-install@v3"
with:
composer-options: "--no-scripts"
-
name: "Run composer normalize"
run: "composer normalize --dry-run --indent-size=4 --indent-style=space"
php-cs-fixer:
needs:
- "composer-validate"
name: "PHP-CS-Fixer (${{ matrix.php-version }})"
runs-on: "ubuntu-latest"
strategy:
matrix:
php-version:
- '8.2'
steps:
-
name: "Checkout code"
uses: "actions/checkout@v3"
-
name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
php-version: "${{ matrix.php-version }}"
tools: composer:v2
-
name: "Composer install"
uses: "ramsey/composer-install@v3"
with:
composer-options: "--no-scripts"
-
name: "Run friendsofphp/php-cs-fixer"
run: "vendor/bin/php-cs-fixer fix --dry-run --diff --verbose"
phpstan:
needs:
- "composer-validate"
name: "PHPStan (${{ matrix.php-version }})"
runs-on: "ubuntu-latest"
strategy:
matrix:
php-version:
- '8.5'
steps:
-
name: "Checkout code"
uses: "actions/checkout@v3"
-
name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
extensions: "${{ env.REQUIRED_PHP_EXTENSIONS }}"
php-version: "${{ matrix.php-version }}"
tools: composer:v2
-
name: "Composer install"
uses: "ramsey/composer-install@v3"
with:
composer-options: "--no-scripts"
-
name: "Run phpstan/phpstan"
run: "vendor/bin/phpstan analyse -c phpstan.neon.dist"
tests:
needs:
- "composer-validate"
name: "PHP ${{ matrix.php-version }} + ${{ matrix.dependency }}"
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.allow-failures }}
strategy:
matrix:
php-version:
- '8.2'
- '8.3'
- '8.4'
- '8.5'
dependency:
- 'lowest'
- 'highest'
with-examples: ['yes']
allow-failures: [false]
composer-options: ['']
include:
- php-version: '8.2'
dependency: 'highest'
with-examples: 'yes'
allow-failures: false
symfony-version: '7.0.*'
- php-version: '8.5'
dependency: 'highest'
with-examples: 'yes'
allow-failures: false
composer-minimum-stability: 'beta'
symfony-version: '^8.0.0-BETA1'
steps:
- name: "Checkout code"
uses: actions/checkout@v3
- name: "Install PHP with extensions"
uses: shivammathur/setup-php@2.35.5
with:
extensions: "${{ env.REQUIRED_PHP_EXTENSIONS }}"
php-version: ${{ matrix.php-version }}
tools: composer:v2, flex
- name: "Add PHPUnit matcher"
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Configure Composer minimum-stability
if: matrix.composer-minimum-stability
run: composer config minimum-stability ${{ matrix.composer-minimum-stability }}
- name: "Composer install"
uses: "ramsey/composer-install@v3"
with:
dependency-versions: "${{ matrix.dependency }}"
composer-options: "${{ matrix.composer-options }}"
env:
SYMFONY_REQUIRE: ${{ matrix.symfony-version }}
- name: PHP Info
run: php --version
- name: "Run tests with PHPUnit"
run: "vendor/bin/phpunit --log-junit phpunit-${{ matrix.php-version }}-${{ matrix.dependency }}.xml"
env:
SKIP_XDEBUG_TESTS: "${{ matrix.skip_xdebug_tests }}"
- name: "Run benchmarks with PHPBench"
run: "bin/phpbench run --report=env --progress=plain --dump-file=phpbench-${{ matrix.php-version }}-${{ matrix.dependency }}.xml"
- if: matrix.with-examples == 'yes'
run: bin/phpbench run --profile=examples --report=env --progress=plain --iterations=1 --revs=1
- if: matrix.with-examples == 'yes'
run: bin/phpbench run --profile=examples --iterations=1 --revs=1 --report=catordog --executor=acme
- if: matrix.with-examples == 'yes'
run: bin/phpbench cats --profile=examples

Back | FazBrowse Home | New Git URL