Skip to content

Move CI to GH actions and allow PHP 8 #15

Move CI to GH actions and allow PHP 8

Move CI to GH actions and allow PHP 8 #15

Workflow file for this run

on:
pull_request: ~
push:
branches:
- master
jobs:
tests:
name: Test (PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }})
runs-on: ubuntu-latest
strategy:
matrix:
include:
- php: 7.4
symfony: "^4.4"
coverage: true
- php: 8.1
symfony: "^4.4"
# - php: 7.4
# symfony: "^5.4"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Docker compose
run: docker compose up -d && docker compose up --wait crossbar
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- name: Restrict Symfony version
if: matrix.symfony
run: rm composer.lock && composer require "symfony/symfony:${{ matrix.symfony }}" --no-update
- name: Install dependencies
uses: ramsey/composer-install@v2
- name: Run tests
run: vendor/bin/phpunit --coverage-clover=build/coverage-report.xml
- name: Upload code coverage
uses: codecov/codecov-action@v3
if: matrix.coverage
with:
file: build/coverage-report.xml