Skip to content

Move CI to GH actions and allow PHP 8 #26

Move CI to GH actions and allow PHP 8

Move CI to GH actions and allow PHP 8 #26

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"
- php: 8.1
symfony: "^4.4"
- php: 8.2
symfony: "^4.4"
- php: 8.3
symfony: "^4.4"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Docker compose
run: docker compose up -d
- 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@v3
- name: Docker compose wait
run: docker compose up --wait crossbar
- name: Run tests
run: vendor/bin/phpunit --coverage-clover=build/coverage-report.xml
- name: Upload code coverage
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: build/coverage-report.xml