Skip to content

Fix tests

Fix tests #393

Workflow file for this run

name: "unit tests"
on:
pull_request: ~
push: ~
schedule:
# Do not make it the first of the month and/or midnight since it is a very busy time
- cron: "* 10 5 * *"
jobs:
tests:
strategy:

Check failure on line 12 in .github/workflows/unit-tests.yml

View workflow run for this annotation

GitHub Actions / unit tests

Invalid workflow file

The workflow is not valid. .github/workflows/unit-tests.yml (Line: 12, Col: 9): Required property is missing: runs-on
fail-fast: false
matrix:
include:
# Lowest Deps
- php: 8.1
symfony: 5.4.*
composer-flags: '--prefer-stable --prefer-lowest'
can-fail: false
# Stable deps
- php: 8.2
symfony: 6.3.*
composer-flags: '--prefer-stable'
can-fail: false
name: "PHP ${{ matrix.php }} - Symfony ${{ matrix.symfony }}${{ matrix.composer-flags != '' && format(' - Composer {0}', matrix.composer-flags) || '' }}"
env:
SYMFONY_REQUIRE: ${{ matrix.symfony }}
steps:
- name: "checkout"
uses: "actions/checkout@v4"
- name: "build the PHP8 environment"
run: "dev/bin/docker-compose build --build-arg PHP_VERSION=${{ matrix.php }} --build-arg XDEBUG_VERSION='3.2.0' php"
if: startsWith(matrix.php, '8')
- name: "install dependencies"
run: "dev/bin/php composer update --ansi ${{ matrix.composer-flags }}"
- name: "run unit tests"
run: "dev/bin/php-test vendor/bin/simple-phpunit --colors=always"
- name: clear docker volumes
if: ${{ always() }}
run: dev/bin/docker-compose down --volumes