Skip to content

fixes after PHP upgrade #47

fixes after PHP upgrade

fixes after PHP upgrade #47

Workflow file for this run

name: phpunit
on:
workflow_dispatch:
pull_request:
branches:
- master
push:
branches:
- dev
- master
jobs:
phpunit:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['8.2']
name: running on ${{ matrix.operating-system }} / PHP v${{ matrix.php-versions }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 10
- name: Install Yarn dependencies
run: yarn install
- name: Compile assets
run: yarn encore dev
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
- name: Cache Composer dependencies
uses: actions/cache@v3
with:
path: /tmp/composer-cache
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
- name: Install Composer dependencies
run: composer install -o
- name: Create test database
run: php bin/console doctrine:database:create --env=test
- name: Create database schema
run: php bin/console doctrine:schema:create --env=test
- name: Load database fixtures
run: php bin/console doctrine:fixtures:load -n --env=test
- name: Run phpunit test suite
run: php vendor/bin/phpunit