From 69408df701798b036070f71fd31baeefd5511d84 Mon Sep 17 00:00:00 2001 From: Josh Gross Date: Mon, 6 Mar 2023 16:41:06 -0500 Subject: [PATCH] Include name and description in test actions --- languageservice/src/validate.actions.test.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/languageservice/src/validate.actions.test.ts b/languageservice/src/validate.actions.test.ts index fa00c5e..0f4bcd8 100644 --- a/languageservice/src/validate.actions.test.ts +++ b/languageservice/src/validate.actions.test.ts @@ -14,6 +14,8 @@ const validationConfig: ValidationConfig = { switch (ref.owner + "/" + ref.name + "@" + ref.ref) { case "actions/checkout@v3": metadata = { + name: "Checkout", + description: "Checkout a Git repository at a particular version", inputs: { repository: { description: "Repository name with owner", @@ -24,6 +26,9 @@ const validationConfig: ValidationConfig = { break; case "actions/setup-node@v1": metadata = { + name: "Setup Node.js environment", + description: + "Setup a Node.js environment by adding problem matchers and optionally downloading and adding it to the PATH.", inputs: { version: { description: "Deprecated. Use node-version instead. Will not be supported after October 1, 2019", @@ -35,6 +40,8 @@ const validationConfig: ValidationConfig = { break; case "actions/deploy-pages@main": metadata = { + name: "Deploy GitHub Pages site", + description: "A GitHub Action to deploy an artifact as a GitHub Pages site", inputs: { token: { required: true, @@ -46,6 +53,8 @@ const validationConfig: ValidationConfig = { break; case "actions/cache@v1": metadata = { + name: "Cache", + description: "Cache artifacts like dependencies and build outputs to improve workflow execution time", inputs: { path: { description: "A directory to store and save the cache", @@ -63,7 +72,10 @@ const validationConfig: ValidationConfig = { }; break; case "actions/action-no-input@v1": - metadata = {}; + metadata = { + name: "Action with no inputs", + description: "An action with no inputs" + }; } return metadata; }