Skip to content

Bump version to 1.3.0. #747

Bump version to 1.3.0.

Bump version to 1.3.0. #747

Workflow file for this run

name: Unit Tests
on:
push:
branches:
- trunk
- 'feature/**'
- 'release/**'
# Only run if PHP-related files changed.
paths:
- '.github/workflows/php-test.yml'
- '**.php'
- 'phpunit.xml.dist'
- 'composer.json'
- 'composer.lock'
pull_request:
# Only run if PHP-related files changed.
paths:
- '.github/workflows/php-test.yml'
- '**.php'
- 'phpunit.xml.dist'
- 'composer.json'
- 'composer.lock'
types:
- opened
- reopened
- synchronize
jobs:
test:
runs-on: ubuntu-latest
name: Test with PHP ${{matrix.php-version}} ${{ matrix.coverage && ' (coverage)' || '' }}
strategy:
matrix:
php-version: ['7.4', '8.0', '8.4', '8.5']
coverage: [false]
include:
- php-version: '8.4'
coverage: true
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup PHP
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # 2.36.0
with:
php-version: ${{ matrix.php-version }}
coverage: ${{ matrix.coverage && 'xdebug' || 'none' }}
- name: Validate composer.json and composer.lock
run: composer validate --strict
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
with:
path: vendor
key: ${{ runner.os }}-php-${{ matrix.php-version }}-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-${{ matrix.php-version }}-
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Run unit tests
run: composer test:unit ${{ matrix.coverage && '-- --coverage-clover=coverage.xml' || '' }}
- name: Upload coverage to Codecov
if: ${{ matrix.coverage }}
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2
with:
files: coverage.xml
flags: unit
token: ${{ secrets.CODECOV_TOKEN }}