From 5743b63de5d785a2532cb53b49189fb655cd9226 Mon Sep 17 00:00:00 2001 From: Flook Peter Date: Fri, 12 Jul 2024 12:46:08 +0800 Subject: [PATCH] Change action to use setup node then run node command --- README.md | 2 +- action.yml | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index d367cbcb0..e700984b2 100644 --- a/README.md +++ b/README.md @@ -138,7 +138,7 @@ help guide users on what is possible in the `insta-integration.yaml`. The links below show how you can import the schema in your favourite IDE: - [IntelliJ](https://www.jetbrains.com/help/idea/json.html#ws_json_schema_add_custom) -- [VS Code](https://code.visualstudio.com/docs/languages/json#_json-schemas-and-settings) +- [Visual Studio Code](https://code.visualstudio.com/docs/languages/json#_json-schemas-and-settings) ### Example Flows diff --git a/action.yml b/action.yml index 31bf12afc..3e688f2f6 100644 --- a/action.yml +++ b/action.yml @@ -57,13 +57,13 @@ runs: docker-${{ runner.os }}-${{ hashFiles(format('{0}/docker-compose.yaml', inputs.insta_infra_folder)) }} + - uses: 'actions/setup-node@v4' + with: + node-version: '20.x' - name: 'Run integration tests' + shell: 'bash' + run: 'node ./dist/index.js' id: 'insta-integration' - uses: 'actions/github-script@v6' - with: - script: | - const { script } = require("${{ github.action_path }}/dist/index.js") - script() env: CONFIGURATION_FILE: '${{ inputs.configuration_file }}' INSTA_INFRA_FOLDER: '${{ inputs.insta_infra_folder }}'