Repository navigation
[LOC-7188] Enable Dependabot auto-merge automation - #62
Merged
Merged
Conversation
Adds a CircleCI e2e job (install, build, test) and a jest harness that loads the compiled lib/ entry points with the Local runtime mocked, exercising the real @getflywheel/local-components + React.
|
nickcernis
approved these changes
Oct 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.





Summary
.github/workflows/dependabot-automation.yaml: on Dependabot PRs,reads update metadata via
dependabot/fetch-metadataand, for minor/patchonly, approves with
GITHUB_TOKENand enables squash auto-merge(
gh pr merge --auto --squash). Major updates are never auto-merged..github/dependabot.yml: renames the grouped-PR block toall-dependenciesand removes the major-versionignorerules so majorsnow open individual PRs for manual review.
.github/CODEOWNERS: excludespackage.jsonandyarn.lockfromcode-owner review so the
GITHUB_TOKENapproval is sufficient..github/workflows/is intentionally NOT excluded (security policy), so workflow bumps still need a human.
GITHUB_TOKEN(no machine user/PAT). The workflow-levelpermissions: contents/pull-requests: writeis what elevates Dependabot'sdefault read-only token.
e2echeck that proves the built add-on stillinstalls, builds, loads, renders and wires IPC after dependency bumps.
test/that loads the compiledlib/entry pointswith the Local runtime and Electron mocked, exercising the real
@getflywheel/local-components+ React in jsdom.sonar-project.properties(sonar.tests=test) so Sonar classifies therelocated tests correctly.
E2E check
.circleci/config.yml: singlee2ejob oncimg/node:22.15(Linux) —yarn install --frozen-lockfile->yarn build->yarn test --ci, with ayarn.lockcache. No secrets, no browser.test/main.test.js: theupdate-site-notesIPC handler registers and persists notes.test/renderer.test.js: hooks register, Notes renders (empty + existing), andadd-note syncs over IPC.
test/mocks/*,test/setup.js,jest.config.js: Local/Electron mocks, jsdompolyfills, and harness config.
tsconfig.json/.npmignore: keep tests out of the compiledlib/and thepublished add-on package.
How it works
e2ejob, reporting theci/circleci: e2estatus check.Required repo settings (not in code)
getflywheel/local-addon-notesas a project in CircleCIci/circleci: e2eas a required status check onmasterTest plan
Dependabot automation:
dependabotcheck passes.github/workflows/bump is NOT auto-approved (still requires human review)E2E:
yarn install --frozen-lockfile && yarn build && yarn testpasses locallye2ejob runs andci/circleci: e2eappears on this PRci/circleci: e2ebefore mergingReference