29 Commits

Author SHA1 Message Date
Yves-Marie HAUSSONNE
5570380a40 Correct modpack name 2024-10-14 12:14:36 +00:00
Yves-Marie Haussonne
0c943d9481 simplify the use of json and reduce the amount of logs for the tests 2024-10-10 23:10:02 +02:00
Yves-Marie Haussonne
408370b536 Correct test harnessfor unning the test 2024-10-10 22:31:36 +02:00
Yves-Marie Haussonne
ea86839d09 Add dependencies for test harness 2024-10-10 22:02:08 +02:00
Yves-Marie Haussonne
9abcd9a2ec Change name convention + new version of test_harness 2024-10-10 19:07:33 +02:00
Yves-Marie Haussonne
dec97219b5 chore(tests): update test environment and coverage
Refactor test harness configuration for `worldedit_bigschems` to include additional mod requirements, improving test coverage and stability.
2024-10-06 11:05:02 +02:00
Riwad Salim
92c16b1b6a Update README.md 2024-10-02 23:18:45 +00:00
Riwad Salim
396d36ad43 Update README.md 2024-10-02 23:15:16 +00:00
Riwad Salim
f90fea6cb5 Update README.md 2024-10-02 22:51:35 +00:00
Yves-Marie Haussonne
2b0ca8416c chore(ci): Update Docker images and add package release stage, and use test_harness
Updated Docker images in the GitLab CI configuration and added a package release stage for generating releases of worldedit_bigschems. The CI now includes building and packaging of the project for distribution.
2024-10-02 13:20:45 +02:00
Yves-Marie Haussonne
27ae5d6991 fix(worldedit_bigschems_undo): handle parameter errors and success/failure messages while undoing
Improved parameter handling in the `worldundo` function to return appropriate error messages when encountering issues with the input. Additionally, now returns success or failure messages based on the outcome of the undo action.
2024-09-30 17:39:00 +02:00
Yves-Marie Haussonne
d59b8c1fd6 fix(worldedit_bigschems_commands): fix schematic placement bug
Corrected a bug in the `worldedit_bigschems.bigmtschemplace` function where the variable used to reference the schematic name was incorrect. The bug has been fixed by correctly referencing the variable 'name' instead of 'nom'.
2024-09-30 16:30:55 +02:00
Yves-Marie Haussonne
a2506ed940 refactor(worldedit_bigschems): fix table_unpack function
Refactored the `table_unpack` function in `utils.lua` to correctly reference itself within recursive calls. Removed an unnecessary line in `undo.lua` which was writing history to a file directly.
2024-09-30 16:01:00 +02:00
Yves-Marie Haussonne
26b0b0fe22 Remove reference to unej and make areas as an optional dependency
Added a `table_unpack` function to improve JSON-like table formatting. Updated references to use this new function for a more consistent output. Adjusted dependencies by moving "areas" to optional dependencies and ensured the code only manipulates areas if the mod is loaded. Also cleaned up test cases to reflect the updated dependency management.
```
2024-09-27 16:41:48 +02:00
Yves-Marie Haussonne
8d9713e552 ```
Refactor transaction handling on startup

Changed the config option for handling transactions on startup from a simple boolean (clear transactions) to an enum ('keep', 'delete', 'rollback') for more granular control. Implemented the 'rollback' logic to revert transactions on startup. Added validation and error logging for the new config value.
```
2024-09-26 14:54:03 +02:00
Yves-Marie Haussonne
92eb472212 add globals in luacheckrc, document settings 2024-09-25 23:18:02 +02:00
Yves-Marie Haussonne
de8745842d correction 2024-09-25 20:13:48 +02:00
Yves-Marie Haussonne
bd3f7a827b option to run docker 2024-09-25 19:50:23 +02:00
Yves-Marie Haussonne
64030cad97 correct build cmd 2024-09-25 19:39:41 +02:00
Yves-Marie Haussonne
7193114907 ci correction 2024-09-25 19:31:14 +02:00
Yves-Marie Haussonne
1b861f9e7e back to dind 2024-09-25 19:11:33 +02:00
Yves-Marie Haussonne
f225394246 try kaniko 2024-09-25 17:49:30 +02:00
Yves-Marie Haussonne
b166ec6205 try to run podman as root 2024-09-25 16:11:17 +02:00
Yves-Marie Haussonne
4955949efe Use podman image to run the tests 2024-09-25 14:07:58 +02:00
Yves-Marie Haussonne
d42eb09c38 use dind service 2024-09-25 13:04:53 +02:00
Yves-Marie Haussonne
ce88531ed6 Add gitlab CI 2024-09-25 12:55:43 +02:00
Yves-Marie Haussonne
743144b3a6 Add translations 2024-09-25 12:12:03 +02:00
Yves-Marie Haussonne
f7803dad4c First version and evolution 2024-09-24 11:55:50 +02:00
Yves-Marie HAUSSONNE
34b7544a39 Initial commit 2024-09-09 17:02:02 +00:00