File tree Expand file tree Collapse file tree 1 file changed +29
-1
lines changed Expand file tree Collapse file tree 1 file changed +29
-1
lines changed Original file line number Diff line number Diff line change 4
4
push : {branches: main}
5
5
6
6
jobs :
7
- integration :
7
+ test-return :
8
8
runs-on : ubuntu-latest
9
9
steps :
10
10
- id : output-set
17
17
if [[ "${{steps.output-set.outputs.result}}" != "output" ]]; then
18
18
exit 1
19
19
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
You can’t perform that action at this time.
0 commit comments