File tree 5 files changed +21
-9
lines changed 5 files changed +21
-9
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ job-test: &job-test
20
20
- checkout
21
21
22
22
- run :
23
- name : Build the codebase
23
+ name : Assemble the codebase
24
24
command : .devtools/assemble.sh
25
25
26
26
- run :
@@ -111,7 +111,7 @@ jobs:
111
111
- image : cimg/php:8.3-browsers
112
112
environment :
113
113
DRUPAL_VERSION : 11@alpha
114
- DRUPAL_PROJECT_REPO : https://github.com/AlexSkrypnyk/drupal-project.git
114
+ DRUPAL_PROJECT_SHA : 11.x
115
115
<< : *job-test
116
116
117
117
deploy :
Original file line number Diff line number Diff line change 54
54
db_file=" /tmp/site_${extension} .sqlite"
55
55
56
56
info " Installing Drupal into SQLite database ${db_file} ."
57
- drush si " ${DRUPAL_PROFILE} " -y --db-url " sqlite://${db_file} " --account-name=admin install_configure_form.enable_update_status_module=NULL install_configure_form.enable_update_status_emails=NULL
57
+ drush site-install " ${DRUPAL_PROFILE} " -y --db-url=" sqlite://localhost/${db_file} " --account-name=admin install_configure_form.enable_update_status_module=NULL install_configure_form.enable_update_status_emails=NULL
58
+
58
59
pass " Drupal installed."
59
60
60
61
drush status
Original file line number Diff line number Diff line change 22
22
23
23
- name : Setup PHP
24
24
uses : shivammathur/setup-php@v2
25
+ with :
26
+ php-version : 8.3
27
+ extensions : gd, sqlite, pdo_sqlite
25
28
26
29
- name : Check coding standards
27
30
uses : luizm/action-sh-checker@v0.8.0
Original file line number Diff line number Diff line change @@ -37,14 +37,13 @@ jobs:
37
37
- name : test-php-8.3-next
38
38
php-version : 8.3
39
39
drupal-version : 11@alpha
40
- drupal-project-repo : https://github.com/AlexSkrypnyk/drupal-project.git
40
+ drupal-project-sha : 11.x
41
41
42
42
name : ${{ matrix.name }}
43
43
44
44
env :
45
45
DRUPAL_VERSION : ${{ matrix.drupal-version }}
46
46
DRUPAL_PROJECT_SHA : ${{ matrix.drupal-project-sha }}
47
- DRUPAL_PROJECT_REPO : ${{ matrix.drupal-project-repo }}
48
47
49
48
steps :
50
49
- name : Checkout code
@@ -56,12 +55,22 @@ jobs:
56
55
path : /tmp/composer-cache
57
56
key : ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
58
57
58
+ - name : Upgrade sqlite3
59
+ run : |
60
+ wget https://www.sqlite.org/2024/sqlite-autoconf-3450300.tar.gz -O /tmp/sqlite.tar.gz
61
+ tar -xzf /tmp/sqlite.tar.gz -C /tmp
62
+ cd /tmp/sqlite-autoconf-3450300
63
+ ./configure CFLAGS="-DSQLITE_ENABLE_COLUMN_METADATA=1" --prefix=/usr/local
64
+ make && sudo make install
65
+ sudo ldconfig
66
+
59
67
- name : Setup PHP
60
68
uses : shivammathur/setup-php@v2
61
69
with :
62
70
php-version : ${{ matrix.php-version }}
71
+ extensions : gd, sqlite, pdo_sqlite
63
72
64
- - name : Build the codebase
73
+ - name : Assemble the codebase
65
74
run : .devtools/assemble.sh
66
75
67
76
- name : Start built-in PHP server
Original file line number Diff line number Diff line change 12
12
13
13
declare (strict_types=1 );
14
14
15
- use DrupalFinder \DrupalFinder ;
15
+ use DrupalFinder \DrupalFinderComposerRuntime ;
16
16
use DrupalRector \Set \Drupal10SetList ;
17
17
use DrupalRector \Set \Drupal8SetList ;
18
18
use DrupalRector \Set \Drupal9SetList ;
32
32
33
33
$ rectorConfig ->rule (DeclareStrictTypesRector::class);
34
34
35
- $ drupalFinder = new DrupalFinder ();
36
- $ drupalFinder ->locateRoot (__DIR__ );
35
+ $ drupalFinder = new DrupalFinderComposerRuntime ();
37
36
$ drupalRoot = $ drupalFinder ->getDrupalRoot ();
38
37
$ rectorConfig ->autoloadPaths ([
39
38
$ drupalRoot . '/core ' ,
You can’t perform that action at this time.
0 commit comments