-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Replace sserbin/twig-linter with vincentlanglet/twig-cs-fixer/ - sserbin/twig-linter depends on an old version of symfony/console and core is adopting this new package at some point https://www.drupal.org/project/drupal/issues/3284817 - it also has a much better extension mechanism which will help if something like Fix linting for Storybook #615 comes up again - Update Pantheon settings for Drupal 11 - Update PHPUnit configurations and tests for Drupal 11 - Fix mysterious yarn issues with DDEV
- Loading branch information
Showing
25 changed files
with
362 additions
and
236 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,9 +13,12 @@ concurrency: | |
jobs: | ||
Build: | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
matrix: | ||
drupal-version: [ 10, 11 ] | ||
steps: | ||
- name: Create a Drupal project | ||
run: composer create-project drupal/recommended-project . --ignore-platform-req=ext-gd | ||
run: composer create-project drupal/recommended-project:^${{ matrix.drupal-version }} . --ignore-platform-reqs | ||
|
||
- uses: actions/checkout@v4 | ||
with: | ||
|
@@ -35,7 +38,8 @@ jobs: | |
- name: Setup Project | ||
run: | | ||
ddev config --auto | ||
ddev config --nodejs-version "18" | ||
ddev config --nodejs-version "22" | ||
ddev config --corepack-enable | ||
ddev start | ||
ddev composer config extra.drupal-scaffold.gitignore true | ||
ddev composer config --json extra.drupal-scaffold.allowed-packages '["lullabot/drainpipe-dev", "lullabot/drainpipe"]' | ||
|
@@ -64,16 +68,19 @@ jobs: | |
- name: Upload Artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: test-functional-build | ||
name: test-functional-build-${{ matrix.drupal-version }} | ||
path: /tmp/drainpipe.zip | ||
|
||
Test-NPM: | ||
runs-on: ubuntu-22.04 | ||
needs: Build | ||
strategy: | ||
matrix: | ||
drupal-version: [ 10, 11 ] | ||
steps: | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: test-functional-build | ||
name: test-functional-build-${{ matrix.drupal-version }} | ||
|
||
- name: Restore Workspace | ||
run: | | ||
|
@@ -112,16 +119,19 @@ jobs: | |
if: ${{ always() }} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: test_result-npm | ||
name: test_result-npm-${{ matrix.drupal-version }} | ||
path: test_result | ||
|
||
Test-Yarn-Classic: | ||
runs-on: ubuntu-22.04 | ||
needs: Build | ||
strategy: | ||
matrix: | ||
drupal-version: [ 10, 11 ] | ||
steps: | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: test-functional-build | ||
name: test-functional-build-${{ matrix.drupal-version }} | ||
|
||
- name: Restore Workspace | ||
run: | | ||
|
@@ -143,7 +153,9 @@ jobs: | |
|
||
- name: Setup Nightwatch | ||
run: | | ||
ddev yarn set version classic | ||
ddev exec corepack disable | ||
ddev exec npm i -g [email protected] | ||
ddev exec 'ln -s $(npm root -g)/yarn/bin/yarn /usr/local/bin/yarn' | ||
ddev yarn init -y | ||
ddev yarn add nightwatch nightwatch-accessibility @lullabot/nightwatch-drupal-commands lodash --dev | ||
|
@@ -161,16 +173,19 @@ jobs: | |
if: ${{ always() }} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: test_result-yarn-classic | ||
name: test_result-yarn-classic-${{ matrix.drupal-version }} | ||
path: test_result | ||
|
||
Test-Yarn-3-Node-Linker: | ||
runs-on: ubuntu-22.04 | ||
needs: Build | ||
strategy: | ||
matrix: | ||
drupal-version: [ 10, 11 ] | ||
steps: | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: test-functional-build | ||
name: test-functional-build-${{ matrix.drupal-version }} | ||
|
||
- name: Restore Workspace | ||
run: | | ||
|
@@ -195,7 +210,7 @@ jobs: | |
ddev yarn set version berry | ||
ddev yarn set version 3 | ||
ddev yarn init -y | ||
yarn config set nodeLinker node-modules | ||
ddev yarn config set nodeLinker node-modules | ||
ddev yarn add nightwatch nightwatch-accessibility @lullabot/nightwatch-drupal-commands lodash --dev | ||
- name: Install Drupal | ||
|
@@ -212,16 +227,19 @@ jobs: | |
if: ${{ always() }} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: test_result-yarn3-nl | ||
name: test_result-yarn3-nl-${{ matrix.drupal-version }} | ||
path: test_result | ||
|
||
Test-Yarn-4-Node-Linker: | ||
runs-on: ubuntu-22.04 | ||
needs: Build | ||
strategy: | ||
matrix: | ||
drupal-version: [ 10, 11 ] | ||
steps: | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: test-functional-build | ||
name: test-functional-build-${{ matrix.drupal-version }} | ||
|
||
- name: Restore Workspace | ||
run: | | ||
|
@@ -243,12 +261,11 @@ jobs: | |
|
||
- name: Setup Nightwatch | ||
run: | | ||
ddev config --nodejs-version=21 | ||
ddev restart | ||
ddev yarn set version berry | ||
ddev yarn set version 4 | ||
ddev yarn init -y | ||
yarn config set nodeLinker node-modules | ||
ddev yarn config set nodeLinker node-modules | ||
ddev yarn add nightwatch nightwatch-accessibility @lullabot/nightwatch-drupal-commands lodash --dev | ||
- name: Install Drupal | ||
|
@@ -265,16 +282,19 @@ jobs: | |
if: ${{ always() }} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: test_result-yarn4-nl | ||
name: test_result-yarn4-nl-${{ matrix.drupal-version }} | ||
path: test_result | ||
|
||
Test-Yarn-3: | ||
runs-on: ubuntu-22.04 | ||
needs: Build | ||
strategy: | ||
matrix: | ||
drupal-version: [ 10, 11 ] | ||
steps: | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: test-functional-build | ||
name: test-functional-build-${{ matrix.drupal-version }} | ||
|
||
- name: Restore Workspace | ||
run: | | ||
|
@@ -319,16 +339,19 @@ jobs: | |
if: ${{ always() }} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: test_result-yarn3 | ||
name: test_result-yarn3-${{ matrix.drupal-version }} | ||
path: test_result | ||
|
||
Test-Yarn-4: | ||
runs-on: ubuntu-22.04 | ||
needs: Build | ||
strategy: | ||
matrix: | ||
drupal-version: [ 10, 11 ] | ||
steps: | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: test-functional-build | ||
name: test-functional-build-${{ matrix.drupal-version }} | ||
|
||
- name: Restore Workspace | ||
run: | | ||
|
@@ -350,7 +373,6 @@ jobs: | |
|
||
- name: Setup Nightwatch | ||
run: | | ||
ddev config --nodejs-version=21 | ||
ddev restart | ||
ddev yarn set version berry | ||
ddev yarn init -y | ||
|
@@ -375,5 +397,5 @@ jobs: | |
if: ${{ always() }} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: test_result-yarn4 | ||
name: test_result-yarn4-${{ matrix.drupal-version }} | ||
path: test_result |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ jobs: | |
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Create a Drupal project | ||
run: composer create-project drupal/recommended-project . --ignore-platform-req=ext-gd | ||
run: composer create-project drupal/recommended-project . --ignore-platform-reqs | ||
|
||
- uses: actions/checkout@v4 | ||
with: | ||
|
@@ -35,7 +35,8 @@ jobs: | |
- name: Setup Project | ||
run: | | ||
ddev config --auto | ||
ddev config --nodejs-version "18" | ||
ddev config --nodejs-version "22" | ||
ddev config --corepack-enable | ||
ddev start | ||
ddev composer config extra.drupal-scaffold.gitignore true | ||
ddev composer config --json extra.drupal-scaffold.allowed-packages '["lullabot/drainpipe-dev", "lullabot/drainpipe"]' | ||
|
@@ -126,9 +127,11 @@ jobs: | |
|
||
- name: Setup Sass | ||
run: | | ||
ddev yarn set version classic | ||
ddev yarn init -y | ||
ddev yarn add file:./drainpipe/metapackages/sass --dev | ||
ddev exec corepack disable | ||
ddev exec npm i -g [email protected] | ||
ddev exec 'ln -s $(npm root -g)/yarn/bin/yarn /usr/local/bin/yarn' | ||
ddev exec yarn init -y | ||
ddev exec yarn add file:./drainpipe/metapackages/sass --dev | ||
- name: Compile Sass | ||
run: ddev task sass | ||
|
@@ -197,7 +200,6 @@ jobs: | |
|
||
- name: Setup Sass | ||
run: | | ||
ddev config --nodejs-version=21 | ||
ddev restart | ||
ddev yarn set version berry | ||
ddev yarn set version 4 | ||
|
@@ -271,10 +273,12 @@ jobs: | |
|
||
- name: Setup Sass | ||
run: | | ||
ddev yarn set version classic | ||
ddev yarn init -y | ||
ddev yarn add focus-trap@^6.7.3 | ||
ddev yarn add file:./drainpipe/metapackages/javascript --dev | ||
ddev exec corepack disable | ||
ddev exec npm i -g [email protected] | ||
ddev exec 'ln -s $(npm root -g)/yarn/bin/yarn /usr/local/bin/yarn' | ||
ddev exec yarn init -y | ||
ddev exec yarn add focus-trap@^6.7.3 | ||
ddev exec yarn add file:./drainpipe/metapackages/javascript --dev | ||
- name: Compile JavaScript | ||
run: ddev task javascript | ||
|
@@ -344,7 +348,6 @@ jobs: | |
|
||
- name: Setup Sass | ||
run: | | ||
ddev config --nodejs-version=21 | ||
ddev restart | ||
ddev yarn set version berry | ||
ddev yarn set version 4 | ||
|
Oops, something went wrong.