Skip to content

Implement SvgTextSizeCalculator #120

Implement SvgTextSizeCalculator

Implement SvgTextSizeCalculator #120

Workflow file for this run

name: Build
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
cs-fix:
runs-on: ubuntu-22.04
name: PHP-CS-Fixer
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Fix CS
uses: docker://oskarstark/php-cs-fixer-ga
build:
strategy:
matrix:
container: [ "php81", "php82", "php83" ]
runs-on: ubuntu-latest
container: pugx/poser:${{ matrix.container }}
steps:
- uses: actions/checkout@v3
- name: Validate composer.json
run: composer validate
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ matrix.container }}-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-${{ matrix.container }}
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Coding Standard Checks
run: PHP_CS_FIXER_IGNORE_ENV=1 bin/php-cs-fixer fix --verbose --diff --dry-run
- name: Run tests (phpspec)
run: ./bin/phpspec run --format=pretty
- name: Run coverage tests (phpspec)
run: XDEBUG_MODE=coverage bin/phpspec run -f progress -c phpspec-coverage.yml
- name: Run behat tests
run: ./bin/behat --snippets-for