Skip to content

ci: add smoke tests for all reusable workflows#43

Open
sydorovdmytro wants to merge 1 commit intomainfrom
test-reusable-workflows
Open

ci: add smoke tests for all reusable workflows#43
sydorovdmytro wants to merge 1 commit intomainfrom
test-reusable-workflows

Conversation

@sydorovdmytro
Copy link
Copy Markdown
Collaborator

@sydorovdmytro sydorovdmytro commented Mar 16, 2026

Summary

  • Add 6 in-repo test workflows (test-*.yaml) that call each reusable workflow_call workflow using local refs to validate them on PRs
  • Add dispatch-integration-tests.yaml to trigger full E2E tests in vClusterLabs-Experiments/github-actions-test post-merge
  • Update Makefile and README with workflow test documentation

Test plan

  • All 6 test-* workflows trigger on this PR (paths filters match the workflow files themselves on first run)
  • test-detect-changes verify step correctly asserts true/false outputs
  • test-backport-parse asserts result is skipped (fails on any other result)
  • test-clean-github-cache-parse runs on PRs only (no push trigger)
  • test-actionlint-workflow verify job warns on fork PR skips
  • make lint passes (actionlint + zizmor clean)
  • After merge, dispatch-integration-tests triggers E2E tests in external repo

Manual setup required

  • Set VCLUSTERLABS_DISPATCH_TOKEN secret in loft-sh/github-actions (PAT with repo scope on vClusterLabs-Experiments)
  • Set GH_ACCESS_TOKEN secret in vClusterLabs-Experiments/github-actions-test

@sydorovdmytro sydorovdmytro requested a review from Piotr1215 March 16, 2026 12:40
Copy link
Copy Markdown
Contributor

@Piotr1215 Piotr1215 left a comment

Choose a reason for hiding this comment

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

Looks great, I love the focus on quality. A few improvement suggestions.

@sydorovdmytro sydorovdmytro force-pushed the test-reusable-workflows branch from 9a07463 to fb1da75 Compare March 30, 2026 13:18
Add 6 test workflows that call each reusable workflow_call workflow
using local refs (./.github/workflows/...) to validate them on PRs.
Add dispatch workflow to trigger E2E tests in the external
vClusterLabs-Experiments/github-actions-test repo post-merge.
@sydorovdmytro sydorovdmytro force-pushed the test-reusable-workflows branch from fb1da75 to 6bf64e2 Compare March 30, 2026 13:23
@sydorovdmytro sydorovdmytro requested a review from Piotr1215 March 30, 2026 13:25
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