fix(deps): update dependency sass to ^1.79.3 #709
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
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: [email protected] | |
- 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 | |
- name: Prove we can upgrade task within task | |
run: | | |
cp -a drainpipe/tests/fixtures/drainpipe-task-upgrade . | |
cp -a drainpipe drainpipe-task-upgrade | |
cd drainpipe-task-upgrade | |
ddev start | |
ddev composer install | |
ddev task drupal:composer:development | |
cp composer-upgraded.json composer.json | |
cp composer-upgraded.lock composer.lock | |
# Composer won't run updated plugin code until after its been | |
# installed. Once we have two new releases after 3.11.0, that upgrade | |
# task, we can remove this double call. | |
ddev task drupal:composer:development || ddev task drupal:composer:development |