#271: Fixed Composer homepage link to use https #39
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: 'Build' | |
on: | |
push: | |
concurrency: | |
group: "${{ github.workflow }}-${{ github.head_ref || github.run_id }}" | |
cancel-in-progress: true | |
jobs: | |
rector: | |
name: 'Rector' | |
runs-on: 'ubuntu-24.04' | |
steps: | |
- name: 'Checkout' | |
uses: 'actions/checkout@v4' | |
- name: 'Setup PHP' | |
uses: 'shivammathur/setup-php@v2' | |
with: | |
php-version: '8.2' | |
- name: 'Install dependencies' | |
run: 'composer install --no-progress --prefer-dist --optimize-autoloader' | |
- name: 'Rector' | |
run: 'vendor/bin/rector process --dry-run --no-progress-bar --ansi' | |
phpstan: | |
name: 'PHPStan' | |
runs-on: 'ubuntu-24.04' | |
steps: | |
- name: 'Checkout' | |
uses: 'actions/checkout@v4' | |
- name: 'Setup PHP' | |
uses: 'shivammathur/setup-php@v2' | |
with: | |
php-version: '8.2' | |
- name: 'Install dependencies' | |
run: 'composer install --no-progress --prefer-dist --optimize-autoloader' | |
- name: 'PHPStan' | |
run: 'vendor/bin/phpstan analyze --no-progress --ansi' | |
php-cs-fixer: | |
name: 'PHP CS Fixer' | |
runs-on: 'ubuntu-24.04' | |
steps: | |
- name: 'Checkout' | |
uses: 'actions/checkout@v4' | |
- name: 'Setup PHP' | |
uses: 'shivammathur/setup-php@v2' | |
with: | |
php-version: '8.2' | |
- name: 'Install dependencies' | |
run: 'composer install --no-progress --prefer-dist --optimize-autoloader' | |
- name: 'PHP CS Fixer' | |
run: 'vendor/bin/php-cs-fixer fix --diff --dry-run --show-progress=none --ansi' | |
phpunit: | |
name: 'PHPUnit' | |
runs-on: 'ubuntu-24.04' | |
strategy: | |
matrix: | |
php: ['8.2', '8.3', '8.4'] | |
fail-fast: false | |
steps: | |
- name: 'Checkout' | |
uses: 'actions/checkout@v4' | |
- name: 'Setup PHP' | |
uses: 'shivammathur/setup-php@v2' | |
with: | |
php-version: "${{ matrix.php }}" | |
- name: 'Install dependencies' | |
run: 'composer install --no-progress --prefer-dist --optimize-autoloader' | |
- name: 'PHPUnit' | |
run: 'XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-text --coverage-clover phpunit-coverage.xml' | |
- name: 'Code Climate' | |
uses: 'paambaati/codeclimate-action@v6' | |
with: | |
coverageLocations: 'phpunit-coverage.xml:clover' | |
env: | |
CC_TEST_REPORTER_ID: "${{ secrets.CODECLIMATE_REPORTER_ID }}" |