Skip to content

Commit beaac7a

Browse files
szeidlerMarlon (esolitos) Saglia
and
Marlon (esolitos) Saglia
authored
Setup ramsalt/drupal-project for Drupal 9 (#18)
* Add Drupal 9 compatible release using a new custom ramsalt scaffolding dependency * Add ramsalt/drupal-scaffold as a dependency * Fix the name of the ramsalt scaffold repository * Don’t ignore /web/sites/*/settings.php, since we do not store sensitive informations. * [CI] Update Action to reflect the new changes Co-authored-by: Marlon (esolitos) Saglia <[email protected]>
1 parent 7ecc6d6 commit beaac7a

File tree

4 files changed

+27
-14
lines changed

4 files changed

+27
-14
lines changed

.github/workflows/ci.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ env:
66
COMPOSER_MEMORY_LIMIT: -1
77
SIMPLETEST_DB: sqlite://tmp/site.sqlite
88
SIMPLETEST_BASE_URL: "http://127.0.0.1:8080"
9+
COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH }}
10+
WODBY_ENVIRONMENT_TYPE: CI
911

1012
jobs:
1113
build:
@@ -51,10 +53,10 @@ jobs:
5153
run: composer --verbose install
5254

5355
- if: matrix.drupal-release == 'dev'
54-
run: composer --verbose require --no-update drupal/core-recommended:9.2.x-dev && composer --verbose require --no-update --dev drupal/core-dev:9.2.x-dev
55-
56-
- if: matrix.drupal-release == 'dev'
57-
run: composer --verbose update
56+
run: |
57+
composer --verbose require --no-update drupal/core-recommended:9.2.x-dev
58+
composer --verbose require --no-update --dev drupal/core-dev:9.2.x-dev
59+
composer --verbose update
5860
5961
- run: ./vendor/bin/drush site-install --verbose --yes --db-url=sqlite://tmp/site.sqlite
6062

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
/web/libraries/
99

1010
# Ignore sensitive information
11-
/web/sites/*/settings.php
1211
/web/sites/*/settings.local.php
1312

1413
# Ignore Drupal's file directory

composer.json

+18-9
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,33 @@
11
{
2-
"name": "drupal-composer/drupal-project",
2+
"name": "ramsalt/drupal-project",
33
"description": "Project template for Drupal 9 projects with Composer",
44
"type": "project",
55
"license": "GPL-2.0-or-later",
66
"authors": [
77
{
8-
"name": "",
8+
"name": "Marlon <[email protected]>",
99
"role": ""
10-
}
11-
],
12-
"repositories": [
10+
},
1311
{
14-
"type": "composer",
15-
"url": "https://packages.drupal.org/8"
12+
"name": "Stephan <[email protected]>",
13+
"role": ""
1614
}
1715
],
16+
"repositories": {
17+
"private-packagist": {
18+
"type": "composer",
19+
"url": "https://repo.packagist.com/ramsalt/"
20+
},
21+
"packagist.org": false
22+
},
1823
"require": {
1924
"php": ">=7.3",
2025
"composer/installers": "^1.9",
2126
"cweagans/composer-patches": "^1.7",
2227
"drupal/core-composer-scaffold": "^9.1",
2328
"drupal/core-recommended": "^9.1",
2429
"drush/drush": "^10.3",
30+
"ramsalt/drupal-scaffold": "*",
2531
"vlucas/phpdotenv": "^5.1",
2632
"webflo/drupal-finder": "^1.2"
2733
},
@@ -60,6 +66,9 @@
6066
},
6167
"extra": {
6268
"drupal-scaffold": {
69+
"allowed-packages": [
70+
"ramsalt/drupal-scaffold"
71+
],
6372
"locations": {
6473
"web-root": "web/"
6574
}
@@ -76,7 +85,7 @@
7685
"patchLevel": {
7786
"drupal/core": "-p2"
7887
},
79-
"patches": {
80-
}
88+
"enable-patching": true,
89+
"patches-file": "composer.patches.json"
8190
}
8291
}

composer.patches.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"patches": {}
3+
}

0 commit comments

Comments
 (0)