Skip to content

fix(deps): update dependency sass to ^1.78.0 #674

fix(deps): update dependency sass to ^1.78.0

fix(deps): update dependency sass to ^1.78.0 #674

name: Test Binary Installer
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
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${{ matrix.drupal-version }} . --ignore-platform-reqs
- uses: actions/checkout@v4
with:
path: drainpipe
- name: Setup drainpipe-dev
run: mv drainpipe/drainpipe-dev .
- uses: ./drainpipe/scaffold/github/actions/common/set-env
- name: Install DDEV
uses: ./drainpipe/scaffold/github/actions/common/ddev
with:
composer-cache-dir: composer-cache
git-name: Drainpipe Bot
git-email: no-reply@example.com
- 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"]'
ddev composer config --no-plugins allow-plugins.composer/installers true
ddev composer config --no-plugins allow-plugins.drupal/core-composer-scaffold true
ddev composer config --no-plugins allow-plugins.lullabot/drainpipe true
ddev composer config --no-plugins allow-plugins.lullabot/drainpipe-dev true
ddev composer config repositories.drainpipe --json '{"type": "path", "url": "drainpipe", "options": {"symlink": false}}'
ddev composer config repositories.drainpipe-dev --json '{"type": "path", "url": "drainpipe-dev", "options": {"symlink": false}}'
ddev composer config minimum-stability dev
ddev composer require "lullabot/drainpipe @dev" --with-all-dependencies
ddev composer require "lullabot/drainpipe-dev @dev" --dev --with-all-dependencies
- name: Simulate failure
run: |
ddev exec touch /var/www/html/composer-cache/files/lullabot/drainpipe/bin/task/3.38.0/task_linux_amd64.tar
ddev composer install
- name: Test installing without composer cache
run: |
ddev composer install --no-cache
test -x vendor/bin/task
ddev composer install
test -x vendor/bin/task
rm -rf vendor
ddev composer install
test -x vendor/bin/task
rm -rf vendor
ddev composer install --no-cache
test -x vendor/bin/task