Skip to content

Merge pull request #38 from jmcollin/feat/html-entity-decoding #103

Merge pull request #38 from jmcollin/feat/html-entity-decoding

Merge pull request #38 from jmcollin/feat/html-entity-decoding #103

Workflow file for this run

name: Quality & linter 🧪
concurrency:
group: quality-${{ github.ref }}
on:
push:
branches: [main]
pull_request:
branches: [main]
types: [opened, edited, synchronize]
jobs:
lint:
name: ${{ matrix.tool }}
runs-on: ubuntu-latest
strategy:
matrix:
include:
- tool: PHPStan
run: vendor/bin/phpstan analyse
- tool: Psalm
run: vendor/bin/psalm
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.2"
extensions: ctype, intl, mbstring
coverage: none
- name: Install dependencies
run: composer install --no-interaction --prefer-dist
- name: Run ${{ matrix.tool }}
run: ${{ matrix.run }}
phpunit:
name: PHPUnit (PHP ${{ matrix.php }})
runs-on: ubuntu-latest
needs: lint
strategy:
matrix:
php: ["8.2", "8.3", "8.4"]
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: ctype, intl, mbstring
coverage: none
- name: Install dependencies
run: composer install --no-interaction --prefer-dist
- name: Run Unit tests
run: vendor/bin/phpunit --testsuite Unit
- name: Run Integration tests
run: vendor/bin/phpunit --testsuite Integration