Add a test for running from a file

This commit is contained in:
Jonathan Clem 2020-05-18 11:44:01 -04:00
parent f498913621
commit 64af053a78
No known key found for this signature in database
GPG key ID: B3662C4A8F843179
2 changed files with 13 additions and 0 deletions

View file

@ -1,4 +1,5 @@
on: on:
pull_request: {branches: master}
push: {branches: master} push: {branches: master}
jobs: jobs:
@ -15,3 +16,13 @@ jobs:
if [[ "${{steps.output-set.outputs.result}}" != "output" ]]; then if [[ "${{steps.output-set.outputs.result}}" != "output" ]]; then
exit 1 exit 1
fi fi
- id: file-output-set
uses: actions/github-script@run-file
with:
file: __test__/test-output.js
result-encoding: string
input-value: output
- run: |
if [[ "${{steps.file-output-set.outputs.result}}" != "output" ]]; then
exit 1
fi

2
__test__/test-output.js Normal file
View file

@ -0,0 +1,2 @@
/* eslint-disable */
return core.getInput('input-value')