Skip to content

feat: run the generated project's CI workflow directly - #120

Merged
bardiharborow merged 4 commits into
mainfrom
feature/run-generated-project-ci
Jun 25, 2026
Merged

bardiharborow merged 4 commits into
mainfrom
feature/run-generated-project-ci

Conversation

@bardiharborow

Copy link
Copy Markdown
Contributor

This PR modifies the template's CI workflow to run the generated project's CI workflow directly rather than running a more limited set of tests.

@bardiharborow
bardiharborow marked this pull request as ready for review June 24, 2026 05:37
@bardiharborow
bardiharborow marked this pull request as draft June 24, 2026 05:37
@bardiharborow
bardiharborow force-pushed the feature/run-generated-project-ci branch 4 times, most recently from c765b0a to 84bfdc8 Compare June 24, 2026 11:52
@bardiharborow
bardiharborow force-pushed the feature/run-generated-project-ci branch from 84bfdc8 to 810de9a Compare June 24, 2026 12:42
@bardiharborow bardiharborow added the enhancement New feature or request label Jun 24, 2026
@bardiharborow
bardiharborow force-pushed the feature/run-generated-project-ci branch 4 times, most recently from 203db94 to 6abdd5f Compare June 24, 2026 23:21
This commit modifies the template's CI workflow to run the generated project's CI workflow directly rather than running a more limited set of tests.
Copier does not emit the `uv.lock` and `package-lock.json` files, but they are needed for the Docker image. This commit adjusts the CI workflow to generate these and adds similar instructions to the README for developers creating new projects.
act runs a workflow's jobs concurrently by default, sharing a single host toolcache between the job containers. astral-sh/setup-uv installs uv to a shared path, so one job writing the binary while another execs it races and fails with ETXTBSY ("Text file busy", exit 126). This commit passes `--concurrent-jobs 1` so the jobs run serially, matching the isolation real GitHub Actions gives each job on its own runner.
Under act, a non-container job with services runs on the host network and `${{ job.container.network }}` is empty. This commit adds quotation marks around it when it is passed as a CLI argument to avoid crashing.

This commit also modifies the image build job to distinguish between a network not being provided and there being no network, and avoiding fabricating a network in the latter case.
@bardiharborow
bardiharborow force-pushed the feature/run-generated-project-ci branch from 6abdd5f to 17550d2 Compare June 24, 2026 23:25
@bardiharborow
bardiharborow marked this pull request as ready for review June 24, 2026 23:44

@a-musing-moose a-musing-moose 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.

Neat, I do found the output of act a little overwhelming compared to actual CI runs but this is a nice way to make sure the embedded CI actions actually work.

@bardiharborow
bardiharborow merged commit 8f679c5 into main Jun 25, 2026
4 checks passed
@bardiharborow
bardiharborow deleted the feature/run-generated-project-ci branch June 25, 2026 02:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants