- run: inv install-dnsdist-test-deps
- run: inv test-dnsdist
+ swagger-syntax-check:
+ runs-on: ubuntu-20.04
+ steps:
+ - uses: actions/checkout@v2.3.4
+ with:
+ fetch-depth: 5
+ submodules: recursive
+ - run: build-scripts/gh-actions-setup-inv # this runs apt update+upgrade
+ - run: inv install-swagger-tools
+ - run: inv swagger-syntax-check
+
collect:
needs:
- build-auth
c.run('chmod +x /opt/pdns-recursor/bin/* /opt/pdns-recursor/sbin/*')
c.run(f'DNSBULKTEST=/usr/bin/dnsbulktest RECURSOR=/opt/pdns-recursor/sbin/pdns_recursor RECCONTROL=/opt/pdns-recursor/bin/rec_control THRESHOLD=95 TRACE=no ./timestamp ./recursor-test 5300 100 {threads} {mthreads} {shards}')
+@task
+def install_swagger_tools(c):
+ c.run('npm install -g api-spec-converter')
+
+@task
+def swagger_syntax_check(c):
+ c.run('api-spec-converter docs/http-api/swagger/authoritative-api-swagger.yaml -f swagger_2 -t openapi_3 -s json -c')
+
# this is run always
def setup():
if '/usr/lib/ccache' not in os.environ['PATH']: