]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
gh actions: add npm package for swagger test 16329/head
authorromeroalx <alexis.romero@open-xchange.com>
Tue, 21 Oct 2025 10:27:33 +0000 (12:27 +0200)
committerromeroalx <alexis.romero@open-xchange.com>
Tue, 21 Oct 2025 13:52:14 +0000 (15:52 +0200)
tasks.py

index c8fd62899c64b91367e1cb104f8b721e97ba1298..091ad25eb9a17f347a8992e9575090a5fb5e4a02 100644 (file)
--- a/tasks.py
+++ b/tasks.py
@@ -1200,6 +1200,8 @@ def test_bulk_recursor(c, size, threads, mthreads, shards, ipv6):
 
 @task
 def install_swagger_tools(c):
+    c.run('sudo apt-get update && sudo apt-get install -y npm')
+    c.run('sudo mkdir -p /usr/local/lib/node_modules && sudo chmod 777 /usr/local/lib/node_modules')
     c.run('npm install -g @stoplight/spectral-cli')
     c.run('npm install -g api-spec-converter')