Commit graph

9 commits

Author SHA1 Message Date
awalsh128 f7f4e53584 ci: bundle the action with rollup and upload it for integration jobs
The integration jobs download an action-bundle-<sha> artifact that
nothing built or uploaded, so all of them failed on their first step.
v2 also had no bundle: action.yml runs dist/index.js, and an action has
no node_modules at runtime.

- Add rollup.config.mjs, which bundles the tsc output (dist/src) into a
  self-contained dist/index.js. npm run build now runs it.
- Fix the setup action, which never built: with if_no_artifact_found:
  ignore the download step always succeeds, so check found_artifact.
  Download cached builds into dist/, and overwrite the build artifact
  since several jobs in a run can build it.
- Upload action.yml and the bundle as action-bundle-<sha> from
  setup-and-cache.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 17:31:39 -08:00
Andrew Walsh 16d0f3489d
ci: fix linters, action pin check and npm audit failures (#232)
- eslint: parse scripts/**/*.{ts,mts} with the TypeScript parser.
  Only src and test were configured, so the scripts failed to parse.
- action-deps-pinned: run the --scan check over .github. The step passed
  ./action.yml, which the script doesn't accept, and action.yml has no
  uses: dependencies to check anyway.
- npm audit fix for the high severity advisories in production
  dependencies (undici, brace-expansion) and @actions/artifact 6.3.1.
  The remaining moderate glob/minimatch advisories need a breaking
  @actions/artifact downgrade, and the audit step only fails on high.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 17:26:06 -08:00
Andrew Walsh 9c915961c7
build: install ts-apt from GitHub instead of a local path (#231)
* build: install ts-apt from GitHub instead of a local path

package.json pointed ts-apt at file:../ts-apt, which only exists on a
dev machine, so every test suite in CI failed with "Cannot find package
'ts-apt'". ts-apt isn't on npm, so pin it to a commit on GitHub. Its
prepare script builds dist on install.

The dev:tsapt:link script used --save, which is how the local path got
committed. Use --no-save so linking a local ts-apt doesn't change
package.json, and restore with npm ci on unlink.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test: clear GITHUB_RUN_ID when testing the run ID fallback

GitHub Actions always sets GITHUB_RUN_ID, so the fallback test failed
once CI could run the tests at all.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 16:53:27 -08:00
awalsh128 fd8f3d3fd1 stuff 2026-08-01 12:33:44 -07:00
awalsh128 c2de292527 stuff 2026-07-25 16:08:50 -07:00
awalsh128 55278329ef fix dev dependencies 2026-07-03 20:52:21 -07:00
awalsh128 b3e03779c4 remove docs, add best practices scripts and fix CI with v1 action tests 2026-07-03 20:43:59 -07:00
awalsh128 1d921eeba9 fixed errors and restoring as a pure port from v1 2026-06-28 15:56:51 -07:00
awalsh128 42b6b9694b Draft of v2 2026-06-28 13:27:41 -07:00