-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (35 loc) · 1.08 KB
/
drupal.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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: Execute tests (Unit and Feature tests) via PHPUnit
env:
SIMPLETEST_DB: sqlite://localhost/sites/default/files/simpletest.sqlite
SIMPLETEST_BASE_URL: "http://127.0.0.1:8080"
SYMFONY_DEPRECATIONS_HELPER: "disabled"
run: ./vendor/bin/phpunit -c web/core web/profiles/contrib/nuxtify