Skip to content
Merged
Prev Previous commit
Next Next commit
Upload NC logs during cypress workflow
Signed-off-by: Louis Chemineau <[email protected]>
  • Loading branch information
artonge committed Apr 5, 2023
commit eba8d7bbb1d4303b7d23c6980a1b69f20701b3b3
13 changes: 12 additions & 1 deletion .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
fail-fast: false
matrix:
# run multiple copies of the current job in parallel
containers: ['component', 1, 2]
containers: ["component", 1, 2]

name: runner ${{ matrix.containers }}

Expand Down Expand Up @@ -91,6 +91,17 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}

- name: Extract NC logs
if: always()
run: docker-compose --project-directory cypress logs > nextcloud.log

- name: Upload NC logs
uses: actions/upload-artifact@v3
if: always()
with:
name: nc_logs_${{ matrix.containers }}
path: nextcloud.log

summary:
runs-on: ubuntu-latest
needs: [init, cypress]
Expand Down