Skip to content

Commit

Permalink
Upload backend logs as artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
nas-tabchiche committed Oct 18, 2024
1 parent 6a245ae commit a1f524f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/functional-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ jobs:
working-directory: ${{ env.backend-directory }}
run: |
touch .env
echo LOG_LEVEL=DEBUG >> .env
echo LOG_OUTFILE=ciso-assistant.log >> .env
echo DJANGO_DEBUG=True >> .env
echo [email protected] >> .env
echo DJANGO_SUPERUSER_PASSWORD=1234 >> .env
Expand Down Expand Up @@ -111,6 +113,7 @@ jobs:
with:
name: functional-tests-report-${{ matrix.playwright-browser }}
path: |
${{ env.backend-directory }}/*.log
${{ env.frontend-directory }}/tests/results/
${{ env.frontend-directory }}/tests/reports/
retention-days: 5
Expand Down Expand Up @@ -173,6 +176,8 @@ jobs:
working-directory: ${{ env.backend-directory }}
run: |
touch .env
echo LOG_LEVEL=DEBUG >> .env
echo LOG_OUTFILE=ciso-assistant.log >> .env
echo DJANGO_DEBUG=True >> .env
echo [email protected] >> .env
echo DJANGO_SUPERUSER_PASSWORD=1234 >> .env
Expand Down Expand Up @@ -210,6 +215,7 @@ jobs:
with:
name: enterprise-functional-tests-report-${{ matrix.playwright-browser }}
path: |
${{ env.backend-directory }}/*.log
${{ env.enterprise-frontend-build-directory }}/tests/results/
${{ env.enterprise-frontend-build-directory }}/tests/reports/
retention-days: 5
6 changes: 6 additions & 0 deletions .github/workflows/startup-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ jobs:
working-directory: ${{ env.backend-directory }}
run: |
touch .env
echo LOG_LEVEL=DEBUG >> .env
echo LOG_OUTFILE=ciso-assistant.log >> .env
echo DJANGO_DEBUG=True >> .env
echo [email protected] >> .env
echo DJANGO_SUPERUSER_PASSWORD=1234 >> .env
Expand Down Expand Up @@ -98,6 +100,7 @@ jobs:
with:
name: startup-functional-test-report
path: |
${{ env.backend-directory }}/*.log
${{ env.frontend-directory }}/tests/reports/
retention-days: 5

Expand Down Expand Up @@ -196,6 +199,8 @@ jobs:
working-directory: ${{ env.backend-directory }}
run: |
touch .env
echo LOG_LEVEL=DEBUG >> .env
echo LOG_OUTFILE=ciso-assistant.log >> .env
echo DJANGO_DEBUG=True >> .env
echo [email protected] >> .env
echo DJANGO_SUPERUSER_PASSWORD=1234 >> .env
Expand Down Expand Up @@ -225,6 +230,7 @@ jobs:
with:
name: enterprise-startup-functional-test-report
path: |
${{ env.backend-directory }}/*.log
${{ env.enterprise-frontend-build-directory }}/tests/reports/
retention-days: 5

Expand Down

0 comments on commit a1f524f

Please sign in to comment.