Skip to content

Update the local docker development experience #2

Update the local docker development experience

Update the local docker development experience #2

Workflow file for this run

name: Continuous integration
on:
workflow_dispatch: ~
push:
branches:
- develop
- main
pull_request:
branches:
- develop
- main
jobs:
ci:
name: Linting, tests and coverage
runs-on: ubuntu-22.04
strategy:
matrix:
php-version:
- 8.1
- 8.2
- 8.3
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
tools: composer:v2
- name: Validate composer.json and composer.lock
run: composer validate
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: Ensure source code is linted
run: ./vendor/bin/phpcs src
- name: PHPUnit
run: ./vendor/bin/phpunit -c phpunit.ci.xml --coverage-xml ./.coverage
env:
XDEBUG_MODE: coverage
- name: PHPUnit threshold
run: php ./phpunit-threshold.php