2024-06-18 12:24:55 +03:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- "*.*"
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
tests:
|
2024-09-24 15:15:07 +03:00
|
|
|
name: PHPUnit PHP ${{ matrix.php-version }} ${{ matrix.dependency }} (Symfony ${{ matrix.symfony-version }})
|
|
|
|
runs-on: ubuntu-22.04
|
2024-06-18 12:24:55 +03:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
php-version:
|
|
|
|
- '8.1'
|
2024-06-18 12:56:39 +03:00
|
|
|
- '8.2'
|
2024-09-24 15:15:07 +03:00
|
|
|
- '8.3'
|
2024-06-18 12:24:55 +03:00
|
|
|
symfony-version:
|
|
|
|
- '5.4.*'
|
2024-06-18 12:30:31 +03:00
|
|
|
- '6.4.*'
|
2024-06-18 12:24:55 +03:00
|
|
|
coverage: [ 'none' ]
|
|
|
|
steps:
|
|
|
|
- name: "Checkout"
|
2024-09-24 15:15:07 +03:00
|
|
|
uses: "actions/checkout@v4"
|
2024-06-18 12:24:55 +03:00
|
|
|
|
|
|
|
- name: "Install PHP"
|
|
|
|
uses: "shivammathur/setup-php@v2"
|
|
|
|
with:
|
|
|
|
php-version: "${{ matrix.php-version }}"
|
|
|
|
|
2024-09-24 15:15:07 +03:00
|
|
|
- name: Configure Symfony
|
|
|
|
run: composer config extra.symfony.require "${{ matrix.symfony-version }}"
|
2024-06-18 12:24:55 +03:00
|
|
|
|
2024-09-24 15:15:07 +03:00
|
|
|
- name: Update project dependencies
|
|
|
|
run: composer update --no-progress --ansi --prefer-stable
|
|
|
|
|
|
|
|
- name: Validate composer
|
|
|
|
run: composer validate --strict --no-check-lock
|
|
|
|
|
|
|
|
- name: Run tests
|
|
|
|
run: vendor/bin/phpunit
|