Skip to content

update validate, test, release workflows#7

Closed
nkdui wants to merge 1 commit intomainfrom
improvement/workflow
Closed

update validate, test, release workflows#7
nkdui wants to merge 1 commit intomainfrom
improvement/workflow

Conversation

@nkdui
Copy link
Copy Markdown
Owner

@nkdui nkdui commented Apr 19, 2026

No description provided.

@nkdui nkdui marked this pull request as ready for review April 19, 2026 16:05
@nkdui nkdui requested a review from Copilot April 19, 2026 16:12
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the GitHub Actions CI/CD pipeline for this devcontainer features repo by chaining workflows so validation runs first, then tests, then publishing.

Changes:

  • Rename workflows to Devcontainer validate, Devcontainer test, and Devcontainer publish.
  • Trigger tests via workflow_run after validation completes, with a gate job to decide whether to run.
  • Trigger publishing via workflow_run after tests complete on main, with a gate job to decide whether to run.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
.github/workflows/validate.yml Renames validation workflow and changes triggers to run on push and pull_request.
.github/workflows/test.yaml Switches tests to run on workflow_run after validation and adds a gating job.
.github/workflows/release.yaml Switches publishing to run on workflow_run after tests on main and adds a gating job.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

name: "Devcontainer validate"
on:
workflow_dispatch:
push:
Comment on lines 38 to 41
test-autogenerated:
needs: check-validate
if: needs.check-validate.outputs.should_run == 'true'
runs-on: ubuntu-latest
Comment on lines +1 to 6
name: "Devcontainer test"
on:
push:
branches:
- main
pull_request:
workflow_run:
workflows: ["Devcontainer validate"]
types: [completed]
workflow_dispatch:
Comment on lines 27 to 30
deploy:
if: ${{ github.ref == 'refs/heads/main' }}
needs: check-test
if: needs.check-test.outputs.should_run == 'true' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
@nkdui nkdui closed this Apr 19, 2026
@nkdui nkdui deleted the improvement/workflow branch April 21, 2026 15:38
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.

2 participants