Skip to content

Fix e2e workflow so validation mode actually runs#8

Merged
haseebmalik18 merged 2 commits into
mainfrom
dsacms/haseeb/e2e-dockerfile-fix
Jul 21, 2026
Merged

Fix e2e workflow so validation mode actually runs#8
haseebmalik18 merged 2 commits into
mainfrom
dsacms/haseeb/e2e-dockerfile-fix

Conversation

@haseebmalik18

Copy link
Copy Markdown
Collaborator

Summary

Two fixes found by actually running the e2e. The local action ref couldn't find the Dockerfile, and validation mode never ran because GITHUB_EVENT_NAME can't be set through uses:, so the "validate" steps were quietly generating PRs instead.

Changes

  • Add a capitalized Dockerfile after checkout so the local ./.e2e-action ref builds (the repo ships it lowercase)
  • Run the four validation steps via docker run with -e GITHUB_EVENT_NAME=pull_request, the only way to put the action in validation mode from here

Testing

Verified with a live run: all three modes pass, the broken fixture is correctly rejected, exactly one PR is opened, and cleanup leaves the repo clean.

@sachin-panayil sachin-panayil left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. curious as to how you manually fed in a commit?

@haseebmalik18

Copy link
Copy Markdown
Collaborator Author

lgtm. curious as to how you manually fed in a commit?

Using the Github CLI

@haseebmalik18
haseebmalik18 merged commit 2071efa into main Jul 21, 2026
6 checks passed
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

Successfully merging this pull request may close these issues.

2 participants