[PR #2269] [MERGED] Add Workflow to test Scripts #3526

Closed
opened 2026-02-05 05:48:06 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/community-scripts/ProxmoxVE/pull/2269
Author: @michelroegl-brunner
Created: 2/11/2025
Status: Merged
Merged: 2/11/2025
Merged by: @michelroegl-brunner

Base: mainHead: script_test_wf


📝 Commits (8)

📊 Changes

5 files changed (+737 additions, -0 deletions)

View changed files

.github/workflows/script-test.yml (+139 -0)
.github/workflows/scripts/app-test/pr-alpine-install.func (+88 -0)
.github/workflows/scripts/app-test/pr-build.func (+259 -0)
.github/workflows/scripts/app-test/pr-create-lxc.sh (+158 -0)
.github/workflows/scripts/app-test/pr-install.func (+93 -0)

📄 Description

✍️ Description

This introduces a new Workflow wich can test all new or editet Scripts wich are in ct/ or install/.
This works with new scripts as well as with updates to older scripts. If a error occures, the Workflow Posts a comment with the error message.

It uses a self hosted Github runner wich is running on a PVE Node, so a LXC will get created and after destroyed.

With this we have te posibillity in the future to also run test when something in the core functions get changed to prevent error when merging them.

Prerequisites

Before this PR can be reviewed, the following must be completed:

  • Self-review performed – Code follows established patterns and conventions.
  • Testing performed – Changes have been thoroughly tested and verified.

🛠️ Type of Change

Select all that apply:

  • [] 🐞 Bug fix – Resolves an issue without breaking functionality.
  • New feature – Adds new, non-breaking functionality.
  • [] 💥 Breaking change – Alters existing functionality in a way that may require updates.
  • [] 🆕 New script – A fully functional and tested script or script set.

📋 Additional Information (optional)

image

image

image


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/community-scripts/ProxmoxVE/pull/2269 **Author:** [@michelroegl-brunner](https://github.com/michelroegl-brunner) **Created:** 2/11/2025 **Status:** ✅ Merged **Merged:** 2/11/2025 **Merged by:** [@michelroegl-brunner](https://github.com/michelroegl-brunner) **Base:** `main` ← **Head:** `script_test_wf` --- ### 📝 Commits (8) - [`e73f29c`](https://github.com/community-scripts/ProxmoxVE/commit/e73f29ce59aacbe59183a464114d0007339491ba) Add new workflow for script testing - [`5524399`](https://github.com/community-scripts/ProxmoxVE/commit/55243992f2500dd5e2659848958bf80969683e9c) Add new workflow for script testing - [`3178385`](https://github.com/community-scripts/ProxmoxVE/commit/3178385ffce03bdd6277840ae9222ba7fd592ef0) Add new workflow for script testing - [`9f61996`](https://github.com/community-scripts/ProxmoxVE/commit/9f61996e6dc61c8c116297368b1a662887b2faf0) Add new workflow for script testing - [`5c7498c`](https://github.com/community-scripts/ProxmoxVE/commit/5c7498c2440f63fc0f2cdde3023d54058869aa32) Merge branch 'script_test_wf' of https://github.com/community-scripts/ProxmoxVE into script_test_wf - [`552bb6e`](https://github.com/community-scripts/ProxmoxVE/commit/552bb6ebe5acad42bdea3a623f5b7c71a2cbbd18) Add new workflow for script testing - [`0b517a3`](https://github.com/community-scripts/ProxmoxVE/commit/0b517a324939f53f09717843b8362bf78efaad95) Add new workflow for script testing - [`d113147`](https://github.com/community-scripts/ProxmoxVE/commit/d113147f0986ebd3d372218026fec8042d3be249) Add new workflow for script testing ### 📊 Changes **5 files changed** (+737 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `.github/workflows/script-test.yml` (+139 -0) ➕ `.github/workflows/scripts/app-test/pr-alpine-install.func` (+88 -0) ➕ `.github/workflows/scripts/app-test/pr-build.func` (+259 -0) ➕ `.github/workflows/scripts/app-test/pr-create-lxc.sh` (+158 -0) ➕ `.github/workflows/scripts/app-test/pr-install.func` (+93 -0) </details> ### 📄 Description ## ✍️ Description <!-- Provide a clear and concise description of your changes. --> This introduces a new Workflow wich can test all new or editet Scripts wich are in ct/ or install/. This works with new scripts as well as with updates to older scripts. If a error occures, the Workflow Posts a comment with the error message. It uses a self hosted Github runner wich is running on a PVE Node, so a LXC will get created and after destroyed. With this we have te posibillity in the future to also run test when something in the core functions get changed to prevent error when merging them. ## ✅ Prerequisites Before this PR can be reviewed, the following must be completed: - [X] **Self-review performed** – Code follows established patterns and conventions. - [X] **Testing performed** – Changes have been thoroughly tested and verified. ## 🛠️ Type of Change Select all that apply: - [] 🐞 **Bug fix** – Resolves an issue without breaking functionality. - [X] ✨ **New feature** – Adds new, non-breaking functionality. - [] 💥 **Breaking change** – Alters existing functionality in a way that may require updates. - [] 🆕 **New script** – A fully functional and tested script or script set. ## 📋 Additional Information (optional) <!-- Provide extra context, screenshots, or references if needed. --> ![image](https://github.com/user-attachments/assets/3a0deff8-a27c-4401-9c56-efe724a79aa1) ![image](https://github.com/user-attachments/assets/8f61c799-537a-42ef-9147-6b7016881072) ![image](https://github.com/user-attachments/assets/41465f70-7ad6-4e28-9454-4dc3f05d06ec) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-05 05:48:06 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#3526