Skip to content

This is the one

This is the one #9

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:
SIMPLETEST_DB: sqlite://localhost/sites/default/files/simpletest.sqlite
SIMPLETEST_BASE_URL: "http://localhost"
SYMFONY_DEPRECATIONS_HELPER: "disabled"
run: ./vendor/bin/phpunit -c web/core web/profiles/contrib/nuxtify