mirror of
https://github.com/actions/github-script.git
synced 2025-12-08 08:06:23 +00:00
48 lines
1.2 KiB
YAML
48 lines
1.2 KiB
YAML
name: Integration
|
|
|
|
on:
|
|
push: {branches: main}
|
|
|
|
jobs:
|
|
test-return:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- id: output-set
|
|
uses: actions/github-script@main
|
|
with:
|
|
script: return core.getInput('input-value')
|
|
result-encoding: string
|
|
input-value: output
|
|
- run: |
|
|
if [[ "${{steps.output-set.outputs.result}}" != "output" ]]; then
|
|
exit 1
|
|
fi
|
|
|
|
test-relative-require:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- id: output-set
|
|
uses: actions/github-script@main
|
|
with:
|
|
script: return require('./package.json').name
|
|
result-encoding: string
|
|
input-value: output
|
|
- run: |
|
|
if [[ "${{steps.output-set.outputs.result}}" != "github-script" ]]; then
|
|
exit 1
|
|
fi
|
|
|
|
test-npm-require:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- id: output-set
|
|
uses: actions/github-script@main
|
|
with:
|
|
script: return require('@actions/core/package.json').name
|
|
result-encoding: string
|
|
input-value: output
|
|
- run: |
|
|
if [[ "${{steps.output-set.outputs.result}}" != "@actions/core" ]]; then
|
|
exit 1
|
|
fi
|