From db84034f2da43f19d6bd1942def1a810033b5470 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Wa=C5=9B?= Date: Thu, 9 Mar 2023 13:53:46 +0100 Subject: [PATCH] Run the action in a container --- Dockerfile | 5 +++++ action.yml | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..7cda2d99 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM node:16-bullseye-slim + +COPY dist /dist + +ENTRYPOINT ["node", "/dist/index.js"] diff --git a/action.yml b/action.yml index 42cbe001..a6d9dc51 100644 --- a/action.yml +++ b/action.yml @@ -49,5 +49,5 @@ outputs: description: 'the test outcome, either `success` or `failure`' runs: - using: 'node16' - main: 'dist/index.js' + using: 'docker' + image: 'Dockerfile'