From 7e7a73b33c506efeaf4fc9ca1d127dfc0227a6b6 Mon Sep 17 00:00:00 2001 From: Drainpipe Date: Mon, 23 Sep 2024 13:16:25 +0000 Subject: [PATCH] ISSUE-220: do not use npx for action validator, use binaries (#676) * ISSUE-220: do not use npx for action validator, use binaries * ISSUE-220: fix typo * ISSUE-220: fix typo * ISSUE-220: moving action-validator download to our dev binary installer plugin class * ISSUE-220: action-validator not needed in the production installer * Require drainpipe-dev so we can test validating actions * Actually install drainpipe-dev #protip * ALlow the drainpipe-dev plugin too * debugging * Fix wrong position of array values * Revert debugging This reverts commit 283be54592ede177e7e913f9af9313c91065d5b3. --------- Co-authored-by: Andrew Berry --- src/DevBinaryInstallerPlugin.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/DevBinaryInstallerPlugin.php b/src/DevBinaryInstallerPlugin.php index 3657a89..617fb71 100644 --- a/src/DevBinaryInstallerPlugin.php +++ b/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', + ], ]; }