From e24b04fa81d7c02cd46ee78b73dc4713bdb5cbee Mon Sep 17 00:00:00 2001 From: Umidbek Karimov <4734297+umidbekk@users.noreply.github.com> Date: Wed, 1 Dec 2021 21:13:22 +0200 Subject: [PATCH] feat: [ActionYML] drop support for the Node 14. See: https://github.com/actions/runner/pull/1439 --- src/manifests/ActionYML.js | 2 +- test/errors/invalid-action/__snapshots__/errors.test.js.snap | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/manifests/ActionYML.js b/src/manifests/ActionYML.js index df06a85..9e672e8 100644 --- a/src/manifests/ActionYML.js +++ b/src/manifests/ActionYML.js @@ -18,7 +18,7 @@ const actionYAMLSchema = z.object({ pre: actionEntrySchema.optional(), post: actionEntrySchema.optional(), - using: z.enum(["node12", "node14", "node16"]), + using: z.enum(["node12", "node16"]), }), }); diff --git a/test/errors/invalid-action/__snapshots__/errors.test.js.snap b/test/errors/invalid-action/__snapshots__/errors.test.js.snap index ec39c49..dd6f0c9 100644 --- a/test/errors/invalid-action/__snapshots__/errors.test.js.snap +++ b/test/errors/invalid-action/__snapshots__/errors.test.js.snap @@ -3,7 +3,7 @@ exports[`invalid-action: stderr 1`] = ` [FAILED] Invalid 'action.yml': [FAILED] '.runs.main': expected to be in the 'dist' directory, received 'action.js' -[FAILED] '.runs.using': expected "node12" or "node14" or "node16" but received "undefined" +[FAILED] '.runs.using': expected "node12" or "node16" but received "undefined" `; exports[`invalid-action: stdout 1`] = `