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
|
||||
|
||||
- name: Upload to Allure
|
||||
if: always()
|
||||
run: |
|
||||
# Login und Cookie speichern
|
||||
curl -s -c cookies.txt \
|
||||
-X POST "${ALLURE_SERVER}/allure-docker-service/login" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"username":"admin","password":"${{ secrets.ALLURE_PASSWORD }}"}'
|
||||
|
||||
# Create project
|
||||
curl -s -o /dev/null -b cookies.txt \
|
||||
-X POST "${ALLURE_SERVER}/allure-docker-service/projects" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"id": "'${ALLURE_PROJECT}'"}' || true
|
||||
|
||||
# Clean results
|
||||
curl -s -b cookies.txt \
|
||||
"${ALLURE_SERVER}/allure-docker-service/clean-results?project_id=${ALLURE_PROJECT}"
|
||||
|
||||
# Upload files
|
||||
for f in target/allure-results/*; do
|
||||
[ -f "$f" ] && curl -s -b cookies.txt \
|
||||
-X POST "${ALLURE_SERVER}/allure-docker-service/send-results?project_id=${ALLURE_PROJECT}" \
|
||||
-F "results[]=@$f"
|
||||
done
|
||||
|
||||
# Generate report
|
||||
curl -s -b cookies.txt \
|
||||
"${ALLURE_SERVER}/allure-docker-service/generate-report?project_id=${ALLURE_PROJECT}"
|
||||
- name: Upload to Allure
|
||||
if: always()
|
||||
run: |
|
||||
# Login und Cookie speichern
|
||||
curl -s -c cookies.txt \
|
||||
-X POST "${ALLURE_SERVER}/allure-docker-service/login" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"username":"admin","password":"${{ secrets.ALLURE_PASSWORD }}"}'
|
||||
|
||||
# Create project
|
||||
curl -s -o /dev/null -b cookies.txt \
|
||||
-X POST "${ALLURE_SERVER}/allure-docker-service/projects" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"id": "'${ALLURE_PROJECT}'"}' || true
|
||||
|
||||
# Clean results
|
||||
curl -s -b cookies.txt \
|
||||
"${ALLURE_SERVER}/allure-docker-service/clean-results?project_id=${ALLURE_PROJECT}"
|
||||
|
||||
# Upload files
|
||||
for f in target/allure-results/*; do
|
||||
[ -f "$f" ] && curl -s -b cookies.txt \
|
||||
-X POST "${ALLURE_SERVER}/allure-docker-service/send-results?project_id=${ALLURE_PROJECT}" \
|
||||
-F "results[]=@$f"
|
||||
done
|
||||
|
||||
# Generate report
|
||||
curl -s -b cookies.txt \
|
||||
"${ALLURE_SERVER}/allure-docker-service/generate-report?project_id=${ALLURE_PROJECT}"
|
||||
Loading…
Add table
Reference in a new issue