Skip to content

Repo cleanup: CI workflow fixes#3

Closed
mikemaccana-edwardbot wants to merge 5 commits intomainfrom
repo-cleanup
Closed

Repo cleanup: CI workflow fixes#3
mikemaccana-edwardbot wants to merge 5 commits intomainfrom
repo-cleanup

Conversation

@mikemaccana-edwardbot
Copy link
Copy Markdown

Clean up CI workflows without changing any program code or versions.

Changes

  1. Remove stale branch triggersanchor-1.0 and fix-biome-errors branches no longer exist; remove them from push triggers across all 5 workflows.

  2. Remove fake FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 env var — This isn't a real GitHub Actions feature and does nothing. Removed from all workflows.

  3. Use pnpm/action-setup in anchor workflow — All other workflows already use pnpm/action-setup@v4; anchor.yml was the outlier using npm i -g pnpm.

  4. Reorder anchor CI: build before installanchor build generates IDL and types that pnpm install dependencies need. Reordered to: build → install → test (with --skip-build to avoid redundant rebuilds).

  5. Fix missing trailing newline in .ghaignore — POSIX compliance.

6 files changed, +16 / -41

rocketiotemp and others added 5 commits April 9, 2026 22:07
Remove 'anchor-1.0' and 'fix-biome-errors' from push branch triggers —
these branches are stale and CI should only trigger on 'main'.

Remove FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 env var from all workflows.
Despite the comments, this is not a real GitHub Actions feature and has
no effect on which Node.js runtime actions use.
All other workflows already use pnpm/action-setup@v4 to install pnpm.
The anchor workflow was the odd one out, using 'npm i -g pnpm' instead.
Switch to the proper action for consistency and to get pnpm caching
support.
The build step generates IDL files and TypeScript types that the test
dependencies need. Running pnpm install first means those generated
files aren't available during dependency resolution/linking.

Reorder to: anchor build → pnpm install → anchor test --skip-build.
Also pass --skip-build to anchor test since the program is already
built, avoiding a redundant rebuild.
POSIX text files should end with a newline. The missing newline could
cause issues with tools that concatenate or process the file line by
line (e.g. the grep/tr pipeline in the CI workflows).
@mikemaccana
Copy link
Copy Markdown
Collaborator

Out of date

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.

3 participants