mirror of
https://github.com/johndoe6345789/GithubWorkflowTool.git
synced 2026-04-24 13:45:02 +00:00
- Document 8 test cases covering all major scenarios - Include expected outputs and exit codes - Provide implementation notes and integration guidance Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
Example Workflows
This directory contains example GitHub Actions workflow files that can be used to test the GithubWorkflowTool.
example-workflow.yml
A comprehensive example workflow that demonstrates:
-
Multiple Triggers:
- Push events on main and develop branches
- Pull request events
- Manual workflow_dispatch
-
Global Environment Variables:
BUILD_TYPEset to Release
-
Multiple Jobs with Dependencies:
build: Initial build and test jobtest-matrix: Matrix strategy testing (needs build)deploy: Deployment job (needs both build and test-matrix)
-
Matrix Strategy:
- Tests with multiple compilers (gcc, clang)
- Tests with multiple build types (Debug, Release)
-
Common Actions:
actions/checkout@v3actions/upload-artifact@v3
-
Conditional Execution:
- Deploy job only runs on main branch
Testing with GithubWorkflowTool
Using CLI:
# Discover workflows in this directory
./build/gwt workflows examples/
# Run the example workflow
./build/gwt run examples/ examples/example-workflow.yml
# Run with QEMU backend
./build/gwt run examples/ examples/example-workflow.yml --qemu
Using GUI:
- Launch the GUI:
./build/gwt-gui - Click "Clone Repository" (or use File > Open for local directory)
- Select the examples directory
- Select the workflow from the list
- Choose backend (Container or QEMU)
- Click "Run Workflow"