]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
gh actions: add npm package for swagger test 16323/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 12:35:32 +0000 (14:35 +0200)
tasks.py

index 1d7d3e59d83df133848e62cb0c7be3c924decf08..7f87b8a1a2009474fbc05dfad3184ff91baf7845 100644 (file)
--- a/tasks.py
+++ b/tasks.py
@@ -1226,6 +1226,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')