Skip to content

Commit

Permalink
GD-15: The action should accept additional installed plugins (#16)
Browse files Browse the repository at this point in the history
* GD-15: The action should accept additional installed plugins

# Why
The action is failing when additional plugins installed. We use the `mv` command to install get selected `gdUnit4` plugin  into addons folder, this will fail when the addons folder is not empty

# What
- use `cp` instead of `mv` command to copy the gdUnit4 plugin to the addons folder.
- Correction of the error when publishing reports if no reports are created
  • Loading branch information
Nullpointer authored Feb 13, 2024
1 parent b4c4fa7 commit 20216b4
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gdunit4_action/publish-test-report/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ runs:
path: 'reports/**/results.xml'
reporter: java-junit
fail-on-error: 'false'
fail-on-empty: 'false'
3 changes: 2 additions & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ body:
description: Which gdUnit4-action version are you using?
options:
- gdUnit4-action@master (Pre Release/Master branch)
- gdUnit4-action@v1.0.1 (Latest Release)
- gdUnit4-action@v1.0.2 (Latest Release)
- gdUnit4-action@v1.0.1
- gdUnit4-action@v1
default: 1
validations:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/resources/addons/custom/plugin.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[plugin]

name="custom"
description="just a example"
author=""
version=""
script="plugin.gd"
10 changes: 10 additions & 0 deletions .github/workflows/resources/addons/custom/plugin.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@tool
extends EditorPlugin


func _enter_tree():
prints("_enter_tree")


func _exit_tree():
prints("_exit_tree")
6 changes: 5 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,12 @@ runs:
# Install requested gdUnit4 version
echo -e "\e[34m Install GdUnit4 \e[92m${gdunit_version} \e[34mplugin in the project \e[0m"
mv ./.install-gdunit4/addons .
cp -R ./.install-gdunit4/addons/gdUnit4 ./addons/
chmod +x ./addons/gdUnit4/runtest.sh
echo -e "\e[34m Installed plugins\e[0m"
echo -e "\e[34m -----------------\e[0m"
ls --color=auto -lsA ./addons
echo -e "\e[34m -----------------\e[0m"
- name: 'Restore .Net Project'
if: ${{ !cancelled() }}
Expand Down

0 comments on commit 20216b4

Please sign in to comment.