Skip to content

Add COLLECTION_TYPE as supported constant when generating relation bl… #456

Add COLLECTION_TYPE as supported constant when generating relation bl…

Add COLLECTION_TYPE as supported constant when generating relation bl… #456

Workflow file for this run

name: build
on:
push:
pull_request:
jobs:
test:
name: Build (${{matrix.php}}, ${{ matrix.os }}, ${{ matrix.dependencies }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
php: ['8.1', '8.2', '8.3', '8.4']
os: [ ubuntu-latest ]
dependencies: [ lowest, highest ]
steps:
- name: Set Git To Use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- name: Checkout
uses: actions/checkout@v4
# Install PHP Dependencies
- name: Setup PHP ${{ matrix.php }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
# PHP Extras
extensions: pdo, pdo_mysql, pdo_sqlite, sockets
coverage: pcov
tools: pecl
ini-values: "memory_limit=-1"
- name: Setup problem matchers
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"
- name: Validate composer.json and composer.lock
run: composer validate --ansi --strict
- name: Install dependencies with composer
uses: ramsey/composer-install@v3
with:
dependency-versions: ${{ matrix.dependencies }}
- name: Execute Tests
run: vendor/bin/phpunit --coverage-clover=coverage.clover
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.clover
fail_ci_if_error: false
- name: Upload Coverage to Scrutinizer
continue-on-error: true
uses: sudo-bot/action-scrutinizer@latest
with:
cli-args: "--format=php-clover coverage.clover"