Responding to Script Questions

One of my scripts in config.yml starts a process that asks for a username and password. How do I instruct CircleCI to wait for that process to start and answer the questions. Additionally for this I need to install a gem but the rest of the app is tested with a node package. Can install ruby packages and still run it in a node environment. This is what I am currently working with:

version: 2
jobs:
    test:
        docker:
            - image: cypress/base:10
        dependencies:
            cache_directories:
                - '/opt/circleci/.rvm/gems'
            pre:
                - gem install zendesk_apps_tools
            working_directory: ~/repo
            steps:
                - checkout
                - run:
                      name: 'Install Dependencies'
                      command: 'yarn install'
                - run:
                      name: 'Verify Cypress'
                      command: 'yarn run cypress verify'
                - run:
                      name: 'Start Theme Preview'
                      command: 'zat theme preview'
workflows:
    version: 2
    build:
        jobs:
            - test
1 Like