2021-02-25 18:02:43 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2021-12-14 16:13:53 +00:00
|
|
|
echo "::group::Build nuclei"
|
2021-08-17 11:00:12 +00:00
|
|
|
rm integration-test nuclei 2>/dev/null
|
2021-02-25 18:02:43 +00:00
|
|
|
cd ../v2/cmd/nuclei
|
2023-02-10 13:58:07 +00:00
|
|
|
go build -race .
|
2021-06-15 06:16:02 +00:00
|
|
|
mv nuclei ../../../integration_tests/nuclei
|
2021-12-14 16:13:53 +00:00
|
|
|
echo "::endgroup::"
|
2022-03-03 13:40:03 +00:00
|
|
|
|
2021-12-14 16:13:53 +00:00
|
|
|
echo "::group::Build nuclei integration-test"
|
2021-02-25 18:02:43 +00:00
|
|
|
cd ../integration-test
|
|
|
|
go build
|
2021-06-15 06:16:02 +00:00
|
|
|
mv integration-test ../../../integration_tests/integration-test
|
2021-02-25 18:02:43 +00:00
|
|
|
cd ../../../integration_tests
|
2021-12-14 16:13:53 +00:00
|
|
|
echo "::endgroup::"
|
2022-03-03 13:40:03 +00:00
|
|
|
|
|
|
|
echo "::group::Installing nuclei templates"
|
|
|
|
./nuclei -update-templates
|
|
|
|
echo "::endgroup::"
|
|
|
|
|
2021-02-25 18:02:43 +00:00
|
|
|
./integration-test
|
2021-02-27 07:12:35 +00:00
|
|
|
if [ $? -eq 0 ]
|
2021-02-27 07:29:26 +00:00
|
|
|
then
|
2021-02-27 07:12:35 +00:00
|
|
|
exit 0
|
|
|
|
else
|
|
|
|
exit 1
|
|
|
|
fi
|