Skip to content

Test on PHP 8.5 and Symfony 7.* #18

Test on PHP 8.5 and Symfony 7.*

Test on PHP 8.5 and Symfony 7.* #18

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]
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:7.17.8
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