Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3ede589

Browse files
committed
Add new integration tests
1 parent 01f87b6 commit 3ede589

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

.github/workflows/integration.yml

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push: {branches: main}
55

66
jobs:
7-
integration:
7+
test-return:
88
runs-on: ubuntu-latest
99
steps:
1010
- id: output-set
@@ -17,3 +17,31 @@ jobs:
1717
if [[ "${{steps.output-set.outputs.result}}" != "output" ]]; then
1818
exit 1
1919
fi
20+
21+
test-relative-require:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- id: output-set
25+
uses: actions/github-script@main
26+
with:
27+
script: return require('./package.json').name
28+
result-encoding: string
29+
input-value: output
30+
- run: |
31+
if [[ "${{steps.output-set.outputs.result}}" != "github-script" ]]; then
32+
exit 1
33+
fi
34+
35+
test-npm-require:
36+
runs-on: ubuntu-latest
37+
steps:
38+
- id: output-set
39+
uses: actions/github-script@main
40+
with:
41+
script: return require('@actions/core/package.json').name
42+
result-encoding: string
43+
input-value: output
44+
- run: |
45+
if [[ "${{steps.output-set.outputs.result}}" != "@actions/core" ]]; then
46+
exit 1
47+
fi

0 commit comments

Comments
 (0)