Skip to content

Fix missing action.yml in TDD Puppeteer job#4062

Merged
raineorshine merged 2 commits into
mainfrom
copilot/add-action-yml-for-puppeteer
Apr 9, 2026
Merged

Fix missing action.yml in TDD Puppeteer job#4062
raineorshine merged 2 commits into
mainfrom
copilot/add-action-yml-for-puppeteer

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 9, 2026

The TDD puppeteer job checks out the base SHA before applying the test diff, then calls uses: ./.github/actions/serve. If action.yml didn't exist at the base SHA (e.g. it was introduced in a later PR), the step fails with Can't find 'action.yml'.

Fix

After the existing git fetch of the PR HEAD, restore .github/actions/ from FETCH_HEAD before the composite action is needed:

- name: Restore GitHub Actions files from PR HEAD
  if: github.event_name == 'pull_request'
  run: git checkout FETCH_HEAD -- .github/actions/

This ensures action.yml is always present at the base checkout without touching any application code (TDD validation unaffected). The if: github.event_name == 'pull_request' guard prevents errors on workflow_dispatch runs where no PR HEAD exists. The composite action itself is unchanged, preserving the no-duplication design from #4035.

Copilot AI linked an issue Apr 9, 2026 that may be closed by this pull request
…x missing action.yml

Agent-Logs-Url: https://github.com/cybersemics/em/sessions/83a51777-f898-46d7-b9a1-9248d594ccf0

Co-authored-by: raineorshine <750276+raineorshine@users.noreply.github.com>
Copilot AI changed the title [WIP] Add action.yml for Puppeteer tests Fix missing action.yml in TDD Puppeteer job Apr 9, 2026
Copilot AI requested a review from raineorshine April 9, 2026 23:17
@raineorshine raineorshine marked this pull request as ready for review April 9, 2026 23:41
@raineorshine raineorshine merged commit 2d16d74 into main Apr 9, 2026
9 checks passed
@raineorshine raineorshine deleted the copilot/add-action-yml-for-puppeteer branch April 9, 2026 23:41
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.

Missing action.yml

2 participants