Skip to content

Ci composer json

Ci composer json #36

Workflow file for this run

name: Check
on:
#push:
# branches: ['main', '*.*.x']
#pull_request:
# paths:
# - composer.json
pull_request: ~
jobs:
psalm:
runs-on: ubuntu-latest
strategy:
matrix:
php: [8.1, 8.2]
dependencies: [lowest, highest]
steps:
- id: coverage
run: |
echo "coverage=${{ matrix.php == fromJson('["8.1", "8.2"]')[0] && matrix.dependency-versions == fromJson('["lowest", "highest"]')[0] && 'true' || 'false' }}" >> $GITHUB_OUTPUT
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
ini-file: development
tools: composer:v2
coverage: ${{ steps.coverage.outputs.coverage && 'pcov' || '' }}
- uses: ramsey/composer-install@v3
with:
composer-options: --optimize-autoloader
dependency-versions: ${{ matrix.dependencies }}
- run: composer test -- --colors=always --coverage-clover coverage.xml
- if: ${{ steps.coverage.outputs.coverage }}
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: test