-
Notifications
You must be signed in to change notification settings - Fork 33
46 lines (39 loc) · 1.25 KB
/
pr.yml
File metadata and controls
46 lines (39 loc) · 1.25 KB
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
39
40
41
42
43
44
45
46
name: pr
on: [pull_request]
# Environment variables available to all jobs and steps in this workflow
env:
COMPOSER_MEMORY_LIMIT: -1
jobs:
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@master
- name: Setup PHP 8.4
uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
- name: Setup dependencies
run: |
git clone --branch 11.3.x https://github.com/drupalwxt/site-wxt.git
cd site-wxt
rm composer.lock
- name: Require patched wxt with Composer
run: composer require "${{ github.event.pull_request.head.repo.full_name }}:dev-${{ github.event.pull_request.head.ref }}#${{ github.event.pull_request.head.sha }}" --working-dir=./site-wxt
- name: Build out the Drupal infrastructure
run: |
export DB_TYPE=mysql
export DB_PORT=3306
cd site-wxt
git clone --branch 11.3.x https://github.com/drupalwxt/docker-scaffold.git docker
make build
docker compose -f docker-compose.ci.yml up -d
docker ps -a
sleep 10
- name: Run installation and tests
run: |
export DB_TYPE=mysql
export DB_PORT=3306
cd site-wxt
make drupal_install
make drupal_migrate
make test