fixed indentation of test.yml

This commit is contained in:
Jan 2026-02-08 19:37:59 +01:00
parent 1563be7260
commit 448943dfe2

View file

@ -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 }}"}'
- 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
# 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}"
# 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
# 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}"
# Generate report
curl -s -b cookies.txt \
"${ALLURE_SERVER}/allure-docker-service/generate-report?project_id=${ALLURE_PROJECT}"