]> source.dussan.org Git - nextcloud-server.git/commitdiff
Extract logs only for e2e testing
authorLouis Chemineau <louis@chmn.me>
Wed, 22 Mar 2023 17:57:48 +0000 (18:57 +0100)
committerLouis Chemineau <louis@chmn.me>
Wed, 5 Apr 2023 09:51:45 +0000 (11:51 +0200)
Signed-off-by: Louis Chemineau <louis@chmn.me>
.github/workflows/cypress.yml

index 9a1d34a92136666e7cd90d74cf4e9812d0d86ea1..e7967d45afd0b7367e89ad39f3c4d4662c9794a4 100644 (file)
@@ -92,12 +92,12 @@ jobs:
           CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
 
       - name: Extract NC logs
-        if: always()
-        run: docker-compose --project-directory cypress logs > nextcloud.log
+        if: ${{ matrix.containers != 'component' }}
+        run: docker logs nextcloud-cypress-tests-server > nextcloud.log
 
       - name: Upload NC logs
         uses: actions/upload-artifact@v3
-        if: always()
+        if: ${{ matrix.containers != 'component' }}
         with:
           name: nc_logs_${{ matrix.containers }}
           path: nextcloud.log