diff --git a/.github/workflows/TestGitHubActions.yml b/.github/workflows/TestGitHubActions.yml index 36405674..9e7643ef 100644 --- a/.github/workflows/TestGitHubActions.yml +++ b/.github/workflows/TestGitHubActions.yml @@ -38,9 +38,12 @@ jobs: 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/drainpipe-dev", "options": {"symlink": false}}' ddev composer config minimum-stability dev ddev composer require lullabot/drainpipe --with-all-dependencies + ddev composer require --dev lullabot/drainpipe-dev --with-all-dependencies - name: Install Drupal run: | diff --git a/drainpipe-dev/src/DevBinaryInstallerPlugin.php b/drainpipe-dev/src/DevBinaryInstallerPlugin.php index 3657a89f..617fb714 100644 --- a/drainpipe-dev/src/DevBinaryInstallerPlugin.php +++ b/drainpipe-dev/src/DevBinaryInstallerPlugin.php @@ -31,5 +31,19 @@ class DevBinaryInstallerPlugin extends BinaryInstaller { 'hashalgo' => 'sha256', 'version' => '1.0.0', ], + 'action-validator' => [ + 'releases' => [ + 'linux' => [ + 'amd64' => ['url' => 'https://github.com/mpalmer/action-validator/releases/download/v0.6.0/action-validator_linux_amd64', 'sha' => 'fa61521913ee4cf5de7e4d5b803741b2c60ebde447ee38e2b71abbd213d3354a'], + 'arm64' => ['url' => 'https://github.com/mpalmer/action-validator/releases/download/v0.6.0/action-validator_linux_arm64', 'sha' => '38a582690ab7e64ba33b4c29eaf16979ed116d4daf40fde39ec18992c475c0b1'], + ], + 'darwin' => [ + 'amd64' => ['url' => 'https://github.com/mpalmer/action-validator/releases/download/v0.6.0/action-validator_darwin_amd64', 'sha' => '10f453ad4ed011eb3866bd35c25311bd2fe1fbf353cbe64793115de2348f8ddb'], + 'arm64' => ['url' => 'https://github.com/mpalmer/action-validator/releases/download/v0.6.0/action-validator_darwin_arm64', 'sha' => '68e09e0793cf958daf0aebe69fb2bf858232fb9c4f74f913dab02db67d32224d'], + ], + ], + 'hashalgo' => 'sha256', + 'version' => '0.6.0', + ], ]; } diff --git a/src/BinaryInstallerPlugin.php b/src/BinaryInstallerPlugin.php index 9df68057..fb4451ac 100644 --- a/src/BinaryInstallerPlugin.php +++ b/src/BinaryInstallerPlugin.php @@ -35,20 +35,6 @@ class BinaryInstallerPlugin extends BinaryInstaller 'hashalgo' => 'sha256', 'version' => '3.38.0', ], - 'action-validator' => [ - 'releases' => [ - 'linux' => [ - 'amd64' => ['url' => 'https://github.com/mpalmer/action-validator/releases/download/v0.6.0/action-validator_linux_amd64', 'sha' => 'fa61521913ee4cf5de7e4d5b803741b2c60ebde447ee38e2b71abbd213d3354a'], - 'arm64' => ['url' => 'https://github.com/mpalmer/action-validator/releases/download/v0.6.0/action-validator_linux_arm64', 'sha' => '38a582690ab7e64ba33b4c29eaf16979ed116d4daf40fde39ec18992c475c0b1'], - ], - 'darwin' => [ - 'amd64' => ['url' => 'https://github.com/mpalmer/action-validator/releases/download/v0.6.0/action-validator_darwin_amd64', 'sha' => '10f453ad4ed011eb3866bd35c25311bd2fe1fbf353cbe64793115de2348f8ddb'], - 'arm64' => ['url' => 'https://github.com/mpalmer/action-validator/releases/download/v0.6.0/action-validator_darwin_arm64', 'sha' => '68e09e0793cf958daf0aebe69fb2bf858232fb9c4f74f913dab02db67d32224d'], - ], - ], - 'hashalgo' => 'sha256', - 'version' => '0.6.0', - ], ]; /** diff --git a/tasks/github.yml b/tasks/github.yml index 2c905d2e..b0f26d23 100644 --- a/tasks/github.yml +++ b/tasks/github.yml @@ -18,7 +18,8 @@ tasks: find $directories -type f \( -iname '*.yaml' -o -iname '*.yml' \) | xargs -n1 ./vendor/bin/action-validator # Fallback for architectures that don't have a release e.g. Windows else - find $directories -type f \( -iname '*.yaml' -o -iname '*.yml' \) | xargs -n1 npx @action-validator/cli + yamls=$(find $directories -type f \( -iname '*.yaml' -o -iname '*.yml' \)) + echo $yamls | xargs -n1 action-validator fi composer-lock-diff: