Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use of ?. syntax results in script error #54

Open
throttlehead-dev opened this issue Jul 21, 2022 · 0 comments
Open

Use of ?. syntax results in script error #54

throttlehead-dev opened this issue Jul 21, 2022 · 0 comments

Comments

@throttlehead-dev
Copy link

throttlehead-dev commented Jul 21, 2022

This took us quite awhile to track down. It seems that whatever version of node this action is using might not support ?. object accessor chaining.

For example:

questions[0]?.rules?.required

I tried ensuring node 16 was used within the job with an action we use elsewhere for our webpack builds:

    - name: Setup Node 16.x
      uses: actions/setup-node@v3
      with:
        node-version: 16.x

But that didn't seem to fix the issue so it must be within the scope of this action. We ended up changing the test scripts for now but this might warrant an update on your end.

This is how we're using your action:

    - name: Run questionnaire_completions collection
      uses: matt-ball/newman-action@master
      with:
        collection: https://api.getpostman.com/collections/{{redacted}}?apikey=${{ secrets.POSTMAN_API_KEY }}
        environment: ${{ secrets.POSTMAN_ENVIRONMENT}}
        workingDir: ./storage/tests/files/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant