forgedhallpass 974cbfb35e
feat: Re-run failed integration tests in debug mode (#1367)
* If the tests are executed through GitHub actions and there are failed integration tests, they will be re-executed with verbose output to help figuring out the underlying issues.
* Added some grouping to make reading the logs easier

Ticket: #1365
2021-12-14 18:13:53 +02:00

16 lines
467 B
Bash

#!/bin/bash
echo "::group::Building functional-test binary"
go build
echo "::endgroup::"
echo "::group::Building Nuclei binary from current branch"
go build -o nuclei_dev ../nuclei
echo "::endgroup::"
echo "::group::Installing latest release of nuclei"
GO111MODULE=on go install -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei
echo "::endgroup::"
echo 'Starting Nuclei functional test'
./functional-test -main nuclei -dev ./nuclei_dev -testcases testcases.txt