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

Unable to view output from command #15

Closed
bantic opened this issue Oct 23, 2019 · 4 comments
Closed

Unable to view output from command #15

bantic opened this issue Oct 23, 2019 · 4 comments

Comments

@bantic
Copy link

bantic commented Oct 23, 2019

Hi, I'm using this action and it doesn't seem to actually run my command.

The relevant section of my workflow yml looks like this:

      - name: Run Tests
        uses: mujo-code/puppeteer-headful@master
        env:
          CI: 'true'
        with:
          args: cd ./ember-debugger && yarn run test

When the github action runs, the "Run Tests" step completes in just 15s, and the only output in the logs is:

/usr/bin/docker run --name dd9e7397d7b3e5ce35497d97550af0970d049d_28b7b4 --label dd9e73 --workdir /github/workspace --rm -e CI -e INPUT_ARGS -e HOME -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e RUNNER_OS -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e GITHUB_ACTIONS=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/chrome-extensions/chrome-extensions":"/github/workspace" dd9e73:97d7b3e5ce35497d97550af0970d049d cd ./ember-debugger && yarn run test
Running 'cd ./ember-debugger && yarn run test'!
Successfully ran 'cd ./ember-debugger && yarn run test'

The yarn run test command should be printing out some output that should appear in the logs, and the test command typically takes ~30s locally.
I've added an explicit assert.ok(false) to my code, too, to ensure that the test command fails.

Any suggestions for debugging this?

@jcblw
Copy link
Member

jcblw commented Oct 25, 2019

Hey the @bantic, so it seems like the other command is not running at all? I would expect there is something funky going on when using && which I think would be supported. Does anything print out when you do something like cd ./ember-debugger && echo "it works!" for the args. I'll see if I can set up some test cases for this Saturday.

@bantic
Copy link
Author

bantic commented Oct 25, 2019

@jcblw Thanks for the reply. You are right, it was the &&! I changed my command to be a single shell script instead, and was able to run multiple commands from within it.

Unfortunately once I got puppeteer running I did run into a separate issue (#17).

@bantic bantic closed this as completed Oct 25, 2019
@K0IN
Copy link

K0IN commented Jan 28, 2022

Ye, I have the same problem is there any other way to fix this (with using &&)—my NPM project is not at the root of the git project.

@jcblw
Copy link
Member

jcblw commented Jan 30, 2022

@K0IN there is probably a number of ways to resolve this, you can attempt to put the full command in a sh file and run that or even a Makefile. Really any way to combine the commands, as long as there is only one command.

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

3 participants