testing new hub ci
This commit is contained in:
parent
5446857377
commit
aa27e5ab93
1 changed files with 2 additions and 2 deletions
4
.github/workflows/hub-ci.yml
vendored
4
.github/workflows/hub-ci.yml
vendored
|
@ -22,7 +22,7 @@ jobs:
|
||||||
run: BUILD_VERSION=xxx make release
|
run: BUILD_VERSION=xxx make release
|
||||||
- name: clone and build hub CI tool
|
- name: clone and build hub CI tool
|
||||||
run: |
|
run: |
|
||||||
git clone https://github.com/crowdsecurity/hub-tests.git
|
git clone -b hub_update https://github.com/crowdsecurity/hub-tests.git
|
||||||
cd hub-tests
|
cd hub-tests
|
||||||
make
|
make
|
||||||
- name: Create crowdsec test env with all parsers from the release
|
- name: Create crowdsec test env with all parsers from the release
|
||||||
|
@ -43,6 +43,6 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
for i in `find ./tests -mindepth 1 -maxdepth 1 -type d` ; do
|
for i in `find ./tests -mindepth 1 -maxdepth 1 -type d` ; do
|
||||||
echo "::group::Test-${i}" ;
|
echo "::group::Test-${i}" ;
|
||||||
./main $i || (echo "::error file=${i}::Failed test for ${i}" ; diff ${i}"/results.yaml" ${i}"/results.yaml.fail") ;
|
./main -c dev.yaml $i || (echo "::error file=${i}::Failed test for ${i}" ; diff ${i}"/results.json" ${i}"/results.json.fail") ;
|
||||||
echo "::endgroup::" ;
|
echo "::endgroup::" ;
|
||||||
done ;
|
done ;
|
||||||
|
|
Loading…
Add table
Reference in a new issue