fixed indentation of test.yml
This commit is contained in:
parent
1563be7260
commit
448943dfe2
1 changed files with 29 additions and 29 deletions
|
|
@ -48,32 +48,32 @@ jobs:
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
- name: Upload to Allure
|
- name: Upload to Allure
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
# Login und Cookie speichern
|
# Login und Cookie speichern
|
||||||
curl -s -c cookies.txt \
|
curl -s -c cookies.txt \
|
||||||
-X POST "${ALLURE_SERVER}/allure-docker-service/login" \
|
-X POST "${ALLURE_SERVER}/allure-docker-service/login" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d '{"username":"admin","password":"${{ secrets.ALLURE_PASSWORD }}"}'
|
-d '{"username":"admin","password":"${{ secrets.ALLURE_PASSWORD }}"}'
|
||||||
|
|
||||||
# Create project
|
# Create project
|
||||||
curl -s -o /dev/null -b cookies.txt \
|
curl -s -o /dev/null -b cookies.txt \
|
||||||
-X POST "${ALLURE_SERVER}/allure-docker-service/projects" \
|
-X POST "${ALLURE_SERVER}/allure-docker-service/projects" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d '{"id": "'${ALLURE_PROJECT}'"}' || true
|
-d '{"id": "'${ALLURE_PROJECT}'"}' || true
|
||||||
|
|
||||||
# Clean results
|
# Clean results
|
||||||
curl -s -b cookies.txt \
|
curl -s -b cookies.txt \
|
||||||
"${ALLURE_SERVER}/allure-docker-service/clean-results?project_id=${ALLURE_PROJECT}"
|
"${ALLURE_SERVER}/allure-docker-service/clean-results?project_id=${ALLURE_PROJECT}"
|
||||||
|
|
||||||
# Upload files
|
# Upload files
|
||||||
for f in target/allure-results/*; do
|
for f in target/allure-results/*; do
|
||||||
[ -f "$f" ] && curl -s -b cookies.txt \
|
[ -f "$f" ] && curl -s -b cookies.txt \
|
||||||
-X POST "${ALLURE_SERVER}/allure-docker-service/send-results?project_id=${ALLURE_PROJECT}" \
|
-X POST "${ALLURE_SERVER}/allure-docker-service/send-results?project_id=${ALLURE_PROJECT}" \
|
||||||
-F "results[]=@$f"
|
-F "results[]=@$f"
|
||||||
done
|
done
|
||||||
|
|
||||||
# Generate report
|
# Generate report
|
||||||
curl -s -b cookies.txt \
|
curl -s -b cookies.txt \
|
||||||
"${ALLURE_SERVER}/allure-docker-service/generate-report?project_id=${ALLURE_PROJECT}"
|
"${ALLURE_SERVER}/allure-docker-service/generate-report?project_id=${ALLURE_PROJECT}"
|
||||||
Loading…
Add table
Reference in a new issue