Skip to content

Commit

Permalink
chore: wip check generator-options command
Browse files Browse the repository at this point in the history
  • Loading branch information
ms14981 committed Mar 27, 2023
1 parent 5038636 commit fecdec7
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,19 @@ jobs:
echo "$(./src/index.js generator-options openapi-forge-javascript)" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- name: Print
- name: Print generator-options command STDOUT
run: echo "${{ steps.generator_options.outputs.generator-options }}"

# - name: Check Output of Generator Options
# if: contains("something with moduleFormat", "moduleFormat") # steps.generator_options.outputs.generator-options
# run: |
# echo "hooray!"
# if: "!contains("something with moduleFormat", "moduleFormat")" # steps.generator_options.outputs.generator-options
# run: |
# echo "oh noes!"
- name: Check Output of Generator Options 1
if: ${{ contains(steps.generator_options.outputs.generator-options, 'moduleFormat') }}
run: |
echo "generator-options command succeeded!"
- name: Check Output of Generator Options 2
if: ${{ !contains(steps.generator_options.outputs.generator-options, 'moduleFormat') }}
run: |
echo "expected generator-options command to produce the moduleFormat option for the JavaScript generator"
exit 1
# - name: Check Output of Generator Options
# run: |
Expand Down

0 comments on commit fecdec7

Please sign in to comment.