Skip to content

Commit

Permalink
Change action to use setup node then run node command
Browse files Browse the repository at this point in the history
  • Loading branch information
pflooky committed Jul 12, 2024
1 parent ab423a4 commit 5743b63
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
10 changes: 5 additions & 5 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}'
Expand Down

0 comments on commit 5743b63

Please sign in to comment.