Koha Test Wiki MW Canasta on Koha Portainer
Test major Koha Wiki changes or bug fixes here without fear of breaking the production wiki.
For the current Koha Wiki, visit https://wiki.koha-community.org .Using GitHub Actions to build and release plugins
Jump to navigation
Jump to search
Using GitHub actions too automate your plugins is easy!
Enable GitHub Actions for your plugin
- Browse to your GitHub plugin repo on GitHub
- Click "Settings" ( in the upper right area, it has a gear icon )
- Click "Actions" ( in the left sidebar )
- Select the option "Enable local and third party Actions for this repository"
Add unit tests
- Copy the basic unit test file to t/00-load.t in the root directory of your plugin's git repository
- Add more unit tests as needed
- Add the file to your report using "git add"
- Commit the addition with "git commit"
Add the workflow file
- Copy the GitHub Actions workflow file to .github/workflows/main.yml in the root directory of your plugin's git repository.
- Add the file to your report using "git add"
- Commit the addition with "git commit"
- Push the change to your master branch with "git push"
Check your CI run
- Browse to your plugin on GitHub
- Click the "Actions" tab at the top
- Notice a CI run for the new push, click on it
Each workflow will test your plugin against master, stable and oldstable version of Koha. If they all pass, the workflow will build and release your plugin!
NOTE: This basic unit test only tests if your plugin's Perl module can be loaded. It will fail if, for example, you use a module that no longer exists. It will not catch the use of subroutines that no longer exist without more unit tests.