Skip to content

Commit

Permalink
Merge branch 'main' into renovate/autoprefixer-10.x
Browse files Browse the repository at this point in the history
  • Loading branch information
justafish authored Aug 13, 2024
2 parents 7dc6d2f + 92c2a5f commit cad5582
Show file tree
Hide file tree
Showing 27 changed files with 404 additions and 237 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/DrainpipeDev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Push Drainpipe Dev Package
on:
push:
branches:
- main
- '**'
tags:
- 'v*'

Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/DrainpipeDevClean.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Clean Drainpipe Dev Package

on: delete

concurrency:
group: drainpipe-dev
cancel-in-progress: false

permissions:
contents: read

jobs:
Drainpipe-Dev-Clean:
name: Push branch to drainpipe-dev
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Add drainpipe-dev deploy key in order to run git clone
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.DRAINPIPE_DEV_DEPLOY_KEY }}
log-public-key: false

# Commits made by the https://github.com/apps/lullabot-drainpipe application.
# @see https://github.com/orgs/community/discussions/24664
- name: Create git checkout of drainpipe-dev
working-directory: drainpipe-dev
run: |
git init
git branch -m ${{ github.event.ref }}
git remote add origin [email protected]:Lullabot/drainpipe-dev.git
git fetch origin
git reset --mixed origin/${{ github.event.ref }}
git config user.name "Lullabot-Drainpipe[bot]"
git config user.email "157769597+Lullabot-Drainpipe[bot]@users.noreply.github.com"
- name: Delete ref from drainpipe-dev
working-directory: drainpipe-dev
run: |
git push origin --delete ${{ github.event.ref }}
11 changes: 10 additions & 1 deletion .github/workflows/TestBinaryInstaller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,18 @@ concurrency:
jobs:
Test-Binary-Installer:
runs-on: ubuntu-22.04
strategy:
matrix:
php-version: [ 8.1, 8.2, 8.3 ]
include:
- php-version: 8.1
drupal-version: ":^10"
- php-version: 8.2
drupal-version: ":^10"
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:
Expand All @@ -37,6 +45,7 @@ jobs:
- name: Setup Project
run: |
ddev config --auto
ddev config --php-version ${{ matrix.php-version }}
ddev start
ddev composer config extra.drupal-scaffold.gitignore true
ddev composer config --json extra.drupal-scaffold.allowed-packages '["lullabot/drainpipe-dev", "lullabot/drainpipe"]'
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/TestComposerLockDiff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ concurrency:
jobs:
Test-Composer-Lock-Diff:
runs-on: ubuntu-22.04
strategy:
matrix:
drupal-version: [ 10, 11 ]
steps:
- name: Create a Drupal project
run: composer create-project drupal/recommended-project:10.0.9 . --ignore-platform-req=ext-gd
run: composer create-project drupal/recommended-project:^${{ matrix.drupal-version }} . --ignore-platform-reqs

- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -77,7 +80,7 @@ jobs:
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: processed-descriptions
name: processed-descriptions-${{ matrix.drupal-version }}
path: |
renovate-processed.json
pr-template-processed.json
6 changes: 4 additions & 2 deletions .github/workflows/TestDDEV.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@ concurrency:
jobs:
Test-DDEV-Install:
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:
Expand All @@ -35,7 +38,6 @@ jobs:
- name: Setup Project
run: |
ddev config --auto
ddev config --nodejs-version "18"
ddev start
ddev composer config extra.drupal-scaffold.gitignore true
ddev composer config --json extra.drupal-scaffold.allowed-packages '["lullabot/drainpipe-dev", "lullabot/drainpipe"]'
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/TestEnv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,13 @@ concurrency:
jobs:
Test-Env:
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
composer create-project drupal/recommended-project:^${{ matrix.drupal-version }} . --ignore-platform-reqs
- uses: actions/checkout@v4
with:
Expand Down
62 changes: 42 additions & 20 deletions .github/workflows/TestFunctional.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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"]'
Expand Down Expand Up @@ -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: |
Expand Down Expand Up @@ -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: |
Expand All @@ -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
Expand All @@ -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: |
Expand All @@ -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
Expand All @@ -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: |
Expand All @@ -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
Expand All @@ -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: |
Expand Down Expand Up @@ -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: |
Expand All @@ -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
Expand All @@ -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
9 changes: 4 additions & 5 deletions .github/workflows/TestGitHubActions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,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:
Expand Down Expand Up @@ -58,10 +58,9 @@ jobs:
run: |
echo "api_version: 1" >> pantheon.yml
echo "web_docroot: true" >> pantheon.yml
echo "php_version: 8.1" >> pantheon.yml
echo "drush_version: 10" >> pantheon.yml
echo "php_version: 8.3" >> pantheon.yml
echo "database:" >> pantheon.yml
echo " version: 10.4" >> pantheon.yml
echo " version: 10.6" >> pantheon.yml
echo "enforce_https: full+subdomains" >> pantheon.yml
echo "build_step: false" >> pantheon.yml
Expand All @@ -78,7 +77,7 @@ jobs:
echo "\$settings['container_yamls'][] = __DIR__ . '/services.yml';" >> web/sites/default/settings.php
echo "include __DIR__ . \"/settings.pantheon.php\";" >> web/sites/default/settings.php
echo "\$settings['config_sync_directory'] = '../config';" >> web/sites/default/settings.php
curl -o web/sites/default/settings.pantheon.php https://raw.githubusercontent.com/pantheon-systems/drops-8/default/sites/default/settings.pantheon.php
curl -o web/sites/default/settings.pantheon.php https://raw.githubusercontent.com/pantheon-systems/drupal-integrations/11.x/assets/settings.pantheon.php
- name: Snapshot Project
env:
Expand Down
Loading

0 comments on commit cad5582

Please sign in to comment.