Skip to content

Allowed doctrine/doctrine-bundle ^3.0 and friends-of-symfony/elastica-bundle ^7.0 #46

Allowed doctrine/doctrine-bundle ^3.0 and friends-of-symfony/elastica-bundle ^7.0

Allowed doctrine/doctrine-bundle ^3.0 and friends-of-symfony/elastica-bundle ^7.0 #46

Workflow file for this run

name: Tests
on:
push:
branches:
- 'master'
- '1.0'
pull_request:
workflow_dispatch:
jobs:
test:
strategy:
matrix:
php-version: [8.1, 8.2, 8.3, 8.4, 8.5]
include:
- php-version: 8.1
elasticsearch-version: 7.17.8
- php-version: 8.2
elasticsearch-version: 7.17.8
- php-version: 8.3
elasticsearch-version: 7.17.8
- php-version: 8.4
elasticsearch-version: 8.11.3
- php-version: 8.5
elasticsearch-version: 8.11.3
runs-on: ubuntu-22.04
container:
image: fsiopenpl/docker-php-apache:alpine-${{ matrix.php-version }}
env:
APP_ENV: test
ELASTICSEARCH_URL: http://elasticsearch:9200
COMPOSER_FLAGS: ${{ matrix.php-version == '8.1' && ' --prefer-lowest' || '' }}
timeout-minutes: 10
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:${{ matrix.elasticsearch-version }}
ports:
- 9200/tcp
env:
cluster.name: fsi-open.data
xpack.security.enabled: false
cluster.routing.allocation.disk.threshold_enabled: false
discovery.type: single-node
ES_JAVA_OPTS: '-Xms512m -Xmx512m'
steps:
- name: Checkout source
uses: actions/checkout@v1
- name: Validate composer config
run: composer validate
- name: Install dependencies
run: composer update ${COMPOSER_FLAGS}
- name: Code quality
run: composer sniffer
- name: Code static analysis
run: composer stan
- name: Unit tests
run: composer unit