fix: add-matcher fails github workflow (#1532)
* fix: add-matcher fails github workflow * make linter happy
This commit is contained in:
@@ -9,23 +9,22 @@ inputs:
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
# The output of actions/setup-node@v2 seems to fail the workflow
|
||||
# - uses: actions/setup-node@v2
|
||||
# with:
|
||||
# node-version: '16'
|
||||
# - run: |
|
||||
# console.log(process.version);
|
||||
# console.log("Hi from node");
|
||||
# console.log("${{ inputs.test_input_optional }}");
|
||||
# if("${{ inputs.test_input_optional }}" !== "Test") {
|
||||
# console.log("Invalid input test_input_optional expected \"Test\" as value");
|
||||
# process.exit(1);
|
||||
# }
|
||||
# if(!process.version.startsWith('v16')) {
|
||||
# console.log("Expected node v16, but got " + process.version);
|
||||
# process.exit(1);
|
||||
# }
|
||||
# shell: node {0}
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '16'
|
||||
- run: |
|
||||
console.log(process.version);
|
||||
console.log("Hi from node");
|
||||
console.log("${{ inputs.test_input_optional }}");
|
||||
if("${{ inputs.test_input_optional }}" !== "Test") {
|
||||
console.log("Invalid input test_input_optional expected \"Test\" as value");
|
||||
process.exit(1);
|
||||
}
|
||||
if(!process.version.startsWith('v16')) {
|
||||
console.log("Expected node v16, but got " + process.version);
|
||||
process.exit(1);
|
||||
}
|
||||
shell: node {0}
|
||||
- uses: ./uses-composite/composite_action
|
||||
id: composite
|
||||
with:
|
||||
|
Reference in New Issue
Block a user