You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This guide explains how to set up GdUnit4 as a git submodule in your project instead of storing it directly in your repository. This approach is recommended for better dependency management and keeps your repository clean.
For continuous integration, there's no need to set up the submodule. The official gdunit4-action will automatically install the GdUnit4 plugin during CI workflow execution.
documentationImprovements or additions to documentationCICI - Workflow
1 participant
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Using GdUnit4 as a Git Submodule
This guide explains how to set up GdUnit4 as a git submodule in your project instead of storing it directly in your repository. This approach is recommended for better dependency management and keeps your repository clean.
Overview
Prerequisites
Setup Instructions
1. Add GdUnit4 as a Submodule
git submodule add --name ".gdUnit4" -f https://github.com/MikeSchulze/gdUnit4
2. Set Up Git Hooks
.github-hooks
directory in your project rootpost-checkout
script in.github-hooks
with the following content:3. Configure .gitignore
Add these entries to your
.gitignore
file:4. Project Structure
After setup, your project structure should look like this:
Usage with CI/CD
For continuous integration, there's no need to set up the submodule. The official gdunit4-action will automatically install the GdUnit4 plugin during CI workflow execution.
Simply use the action in your workflow:
This will handle the plugin installation automatically.
GdUnit4 CI documentation for more details on CI configuration.
Troubleshooting
Common Issues
If the symbolic link doesn't work:
If submodule isn't updating:
Notes
Beta Was this translation helpful? Give feedback.
All reactions