Skip to content

Ignore Symfony deprecation notices in tests #5

Ignore Symfony deprecation notices in tests

Ignore Symfony deprecation notices in tests #5

Workflow file for this run

name: Drupal
on:
push:
branches:
- 'main'
- 'feature/ci'
pull_request:
branches:
- 'main'
permissions:
contents: read
jobs:
drupal-tests:
runs-on: ubuntu-latest
steps:
- uses: shivammathur/setup-php@2cb9b829437ee246e9b3cac53555a39208ca6d28
with:
php-version: '8.2'
- uses: actions/checkout@v4
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Create Database
run: |
mkdir -p db
touch db/db.sqlite
- name: Execute tests (Unit and Feature tests) via PHPUnit
env:
DATABASE_URL: sqlite:///%kernel.project_dir%/db/db.sqlite
SIMPLETEST_BASE_URL: "http://localhost"
SYMFONY_DEPRECATIONS_HELPER: "disabled"
run: vendor/bin/phpunit -c web/core/phpunit.xml.dist web/profiles/contrib/nuxtify