From f057682da4bdab999c7e16940ec5a35c5d45aaa8 Mon Sep 17 00:00:00 2001 From: Louis Chemineau Date: Tue, 28 Mar 2023 13:18:49 +0200 Subject: [PATCH] Upload data dir archive in cypress tests Signed-off-by: Louis Chemineau --- .github/workflows/cypress.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index 0967583ed2a..d5e3e8ce698 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -102,6 +102,17 @@ jobs: name: nc_logs_${{ matrix.containers }} path: nextcloud.log + - name: Create data dir archive + if: ( success() || failure() ) && matrix.containers != 'component' + run: docker exec nextcloud-cypress-tests-server tar -cvjf - data > data.tar + + - name: Upload data dir archive + uses: actions/upload-artifact@v3 + if: ( success() || failure() ) && matrix.containers != 'component' + with: + name: nc_data_${{ matrix.containers }} + path: data.tar + summary: runs-on: ubuntu-latest needs: [init, cypress] -- 2.39.5