-
-
Notifications
You must be signed in to change notification settings - Fork 7
168 lines (168 loc) · 5.51 KB
/
integration.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
name: Integration
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
verify:
runs-on: "ubuntu-latest"
name: "verify"
strategy:
matrix:
drupal:
- "10.0.x-dev"
- "10.0.0-alpha4"
- "^10.0@alpha"
steps:
- name: "Checkout"
uses: "actions/checkout@v2"
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: none
php-version: 8.1
tools: composer:v2
extensions: dom, curl, libxml, mbstring, zip, pdo, mysql, pdo_mysql, bcmath, gd, exif, iconv
- name: Setup Drupal
uses: bluehorndigital/[email protected]
with:
version: "${{ matrix.drupal }}"
path: ~/drupal
allow_plugins: |
drupal/core-composer-scaffold
drupal/core-project-message
mglaman/composer-drupal-lenient
- name: Require self
run: |
cd ~/drupal
composer require mglaman/composer-drupal-lenient *@dev
- name: Configure allowed list
run: |
cd ~/drupal
composer config --merge --json extra.drupal-lenient.allowed-list '["drupal/token"]'
- name: Add non-compatible module release
run: |
cd ~/drupal
composer require drupal/token:1.10.0 -W
composer show drupal/token
purge:
runs-on: "ubuntu-latest"
name: "purge#1342bb92"
steps:
- name: "Checkout"
uses: "actions/checkout@v2"
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: none
php-version: 8.1
tools: composer:v2
extensions: dom, curl, libxml, mbstring, zip, pdo, mysql, pdo_mysql, bcmath, gd, exif, iconv
- name: Setup Drupal
uses: bluehorndigital/[email protected]
with:
version: ^10.0@alpha
path: ~/drupal
allow_plugins: |
mglaman/composer-drupal-lenient
- name: Require self
run: |
cd ~/drupal
composer require mglaman/composer-drupal-lenient *@dev
- name: Configure allowed list
run: |
cd ~/drupal
composer config --merge --json extra.drupal-lenient.allowed-list '["drupal/purge"]'
- name: Add non-compatible module release
run: |
cd ~/drupal
composer require drupal/purge:3.x-dev#1342bb92b5304c6c316357d2c2c71a62a34d3eff -W
composer show drupal/purge
d9_to_d10:
runs-on: "ubuntu-latest"
name: "D9 to D10"
steps:
- name: "Checkout"
uses: "actions/checkout@v2"
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: none
php-version: 8.1
tools: composer:v2
extensions: dom, curl, libxml, mbstring, zip, pdo, mysql, pdo_mysql, bcmath, gd, exif, iconv
- name: Setup Drupal
uses: bluehorndigital/[email protected]
with:
version: ^9
path: ~/drupal
allow_plugins: |
mglaman/composer-drupal-lenient
- name: Require self
run: |
cd ~/drupal
composer require mglaman/composer-drupal-lenient *@dev
- name: Configure allowed list
run: |
cd ~/drupal
composer config --merge --json extra.drupal-lenient.allowed-list '["drupal/purge"]'
- name: Add module release
run: |
cd ~/drupal
composer require drupal/purge:3.x-dev#1342bb92b5304c6c316357d2c2c71a62a34d3eff -W
composer show drupal/purge
- name: Upgrade Drupal
run: |
cd ~/drupal
composer require drupal/core-recommended:^10@alpha drupal/core-dev:^10@alpha drupal/core-composer-scaffold:^10@alpha drupal/core-project-message:^10@alpha drush/drush:^11.0 guzzlehttp/guzzle:^7.0 --with-all-dependencies --no-update
composer update --no-progress --prefer-dist
- name: Show module
run: |
cd ~/drupal
composer show drupal/purge
without_lock_file:
runs-on: "ubuntu-latest"
name: "without lock file"
steps:
- name: "Checkout"
uses: "actions/checkout@v2"
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: none
php-version: 8.1
tools: composer:v2
extensions: dom, curl, libxml, mbstring, zip, pdo, mysql, pdo_mysql, bcmath, gd, exif, iconv
- name: Setup Drupal
uses: bluehorndigital/[email protected]
with:
version: "^10"
path: ~/drupal
allow_plugins: |
drupal/core-composer-scaffold
drupal/core-project-message
mglaman/composer-drupal-lenient
- name: Require self
run: |
cd ~/drupal
composer require mglaman/composer-drupal-lenient *@dev
- name: Configure allowed list
run: |
cd ~/drupal
composer config --merge --json extra.drupal-lenient.allowed-list '["drupal/token"]'
- name: Remove lock file
run: |
cd ~/drupal
rm composer.lock
rm -rf vendor
- name: Require self globally
run: |
cd ~/drupal
composer global config --no-plugins allow-plugins.mglaman/composer-drupal-lenient true
composer global require mglaman/composer-drupal-lenient *@dev
- name: Add non-compatible module release
run: |
cd ~/drupal
composer require drupal/token:1.10.0 -W
composer show drupal/token