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

Improve testability using Act #248

Open
fenech opened this issue Jan 11, 2024 · 0 comments
Open

Improve testability using Act #248

fenech opened this issue Jan 11, 2024 · 0 comments

Comments

@fenech
Copy link

fenech commented Jan 11, 2024

Is your feature request related to a problem? Please describe.

We have found it difficult to test these workflows using https://github.com/nektos/act, since it relies on getting a real PR, rather than using the information in the PR event body.

Describe the solution you'd like

We would like to be able to send a minimal pull request payload like:

{
  "pull_request": {
    "title": "feat: do stuff",
    "labels": []
  }
}

and verify that our workflow is correctly configured before adding it to our repo.

Describe alternatives you've considered

The alternative is to make a real PR in GitHub and send a payload referencing it:

{
  "pull_request": {
    "number": 123,
    "base": {
      "user": {
        "login": "fenech"
      }
    },
    "repo": {
      "name": "my-repo"
    }
  }
}

The motivation for fetching the PR is discussed in #218, but it seems that the solution is to change the concurrency settings of the workflow. Doing that would improve the testability of this Action.

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