test(ensure-nodejs-fork): add simple test
Change-Id: Ie85b82e8fed62e53338b48ff9d992b9dbaad02c6
diff --git a/playbooks/test-ensure-nodejs-fork.yaml b/playbooks/test-ensure-nodejs-fork.yaml
new file mode 100644
index 0000000..798d7d8
--- /dev/null
+++ b/playbooks/test-ensure-nodejs-fork.yaml
@@ -0,0 +1,7 @@
+- hosts: all
+ tasks:
+ - name: "Test installing Node.JS 20"
+ ansible.builtin.include_role:
+ name: ensure-nodejs-fork
+ vars:
+ node_version: 20
diff --git a/zuul.d/test-jobs.yaml b/zuul.d/test-jobs.yaml
index 33ca91b..e40803a 100644
--- a/zuul.d/test-jobs.yaml
+++ b/zuul.d/test-jobs.yaml
@@ -27,3 +27,13 @@
run: playbooks/test-ensure-cws-upload.yaml
files:
- roles/ensure-cws-upload/.*
+
+- job:
+ name: test-ensure-nodejs-fork
+ description: Test the ensure-nodejs-fork role
+ run: playbooks/test-ensure-nodejs-fork.yaml
+ files:
+ - roles/ensure-nodejs-fork/.*
+ - playbooks/test-ensure-nodejs-fork.yaml
+ vars:
+ role_name: ensure-nodejs-fork