summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2023-04-04 13:42:53 +0200
committerGitHub <noreply@github.com>2023-04-04 13:42:53 +0200
commit44cb46c0f24dc369666bfc44ced0cad8f11ccc5b (patch)
tree0760e1ea7ce30f36b6fd8923bed6871f48ad5df5 /.github
parentf78b077eaa3968e49b182e05d8ce6453708b429d (diff)
parent67df0afaffa67ded8e7d63ebc9f82d32c53f0153 (diff)
downloadnextcloud-server-44cb46c0f24dc369666bfc44ced0cad8f11ccc5b.tar.gz
nextcloud-server-44cb46c0f24dc369666bfc44ced0cad8f11ccc5b.zip
Merge pull request #37345 from nextcloud/artonge/fix_files_version_cypress_tests
Fix cypress tests for files_versions
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/cypress.yml24
1 files changed, 23 insertions, 1 deletions
diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml
index ea1a741f574..66f3b4383fc 100644
--- a/.github/workflows/cypress.yml
+++ b/.github/workflows/cypress.yml
@@ -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 }}
@@ -91,6 +91,28 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
+ - name: Extract NC logs
+ if: failure() && matrix.containers != 'component'
+ run: docker logs nextcloud-cypress-tests-server > nextcloud.log
+
+ - name: Upload NC logs
+ uses: actions/upload-artifact@v3
+ if: failure() && matrix.containers != 'component'
+ with:
+ name: nc_logs_${{ matrix.containers }}
+ path: nextcloud.log
+
+ - name: Create data dir archive
+ if: 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: failure() && matrix.containers != 'component'
+ with:
+ name: nc_data_${{ matrix.containers }}
+ path: data.tar
+
summary:
runs-on: ubuntu-latest
needs: [init, cypress]