cypress-io / github-action

GitHub Action for running Cypress end-to-end & component tests
https://on.cypress.io/guides/continuous-integration/github-actions
MIT License
1.35k stars 357 forks source link

Unable to run the cypress-io action when specifying a repo on the checkout #1190

Closed mechuser closed 3 months ago

mechuser commented 3 months ago

Hi,

I discovered that the cypress github actions is unable to run when we use the checkout action with the with option even if we specify the same repo as the one where the cypress actions tries to run.

Here is the workflow that was used in our test :

Please note that this workflow uses placeholder values since i can't share certain values.

MikeMcC399 commented 3 months ago

@mechuser

The start option is for starting a server. It is not intended to be used to run a command which executes Cypress tests.

You may be able to use the command option instead. If you attempt this, please make sure you read the documentation especially concerning the restrictions of this option.

If you believe you have found a bug in the action, you would need to submit debug logs (see Debugging) and / or provide information which allows the issue to be easily reproduced.

Please note also that if you need to post yaml workflow code into an issue, you should be using triple backticks for fenced code blocks like this:

```yml
name: example-basic
# This workflow represents a set of basic End-to-End tests
on:
  push:
    branches:
      - 'master'
and so on


You can request community help on how to use Cypress from the Cypress technical community on Discord

[![Discord chat](https://img.shields.io/badge/chat-on%20Discord-brightgreen)](https://on.cypress.io/discord) (click on button)
MikeMcC399 commented 3 months ago

As discussed and resolved in https://discord.com/channels/755913899261296641/1245737842563354685, the second problem was the mismatch of directories. The cypress-io/github-actions needed to have its working-directory set to match path: test-repo.

The problems were caused by configuration.