Conversation
Copilot
AI
changed the title
[WIP] Update CI workflow to execute in a specified Docker image
Add container input to continuous-integration workflow for Docker-based CI execution
Oct 23, 2025
ffb84c7 to
7db334b
Compare
Contributor
Author
Updated test workflow in f780db3 to validate both scenarios:
The test workflow now builds a Docker image from the npm test fixtures and validates that commands can be executed inside the container. |
2dac07e to
50e2207
Compare
57c94ce to
1a8253c
Compare
02eb7b5 to
420d2d5
Compare
…ecution Co-authored-by: neilime <314088+neilime@users.noreply.github.com> Signed-off-by: Emilien Escalle <emilien.escalle@escemi.com>
420d2d5 to
7505f7f
Compare
neilime
approved these changes
Oct 29, 2025
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.
Overview
This PR adds support for running the continuous integration workflow inside a Docker container instead of checking out files locally. This enables testing the exact same environment that will be deployed to production.
Motivation
When building Docker images for production deployment, it's critical to ensure that CI checks (linting, building, testing) are performed in the same environment that will run in production. Previously, the workflow only supported checking out code and setting up the Node.js environment on the runner, which could lead to discrepancies between the tested and deployed environments.
Changes
New Workflow Input
Added a new optional
containerinput parameter:string""(empty string, maintains current behavior)Updated Jobs
Modified all CI jobs (
setup,lint,build,test) to support container execution:container:configuration to each job that conditionally uses the specified imageif: inputs.container == ''npm runwhen in container modeDocumentation
Updated
.github/workflows/continuous-integration.mdwith:containerparameter in the inputs tableTest Coverage
Enhanced
.github/workflows/__test-workflow-continuous-integration.ymlto validate both modes:This ensures the feature works correctly in both traditional and container-based execution modes.
Usage Example
Backward Compatibility
✅ Fully backward compatible. The
containerinput defaults to an empty string, so existing workflows continue to function without any changes.Testing
Benefits
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.