Skip to content

Commit

Permalink
Merge pull request #13938 from nextcloud/ci/noid/print-federation-log
Browse files Browse the repository at this point in the history
ci(integration): Print federation log file
  • Loading branch information
nickvergessen authored Dec 5, 2024
2 parents 665a1aa + 22c96c3 commit 63e0b9f
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/integration-mariadb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,18 @@ jobs:
run: |
cat data/nextcloud.log
- name: Check Federation log
if: always()
id: check_federation_log
uses: andstor/file-existence-action@076e0072799f4942c8bc574a82233e1e4d13e9d6 # v3.0.0
with:
files: "data/tests-talk-real-federated-server/data/nextcloud.log"

- name: Print federation logs
if: always() && steps.check_federation_log.outputs.files_exists == 'true'
run: |
cat data/tests-talk-real-federated-server/data/nextcloud.log
summary:
permissions:
contents: none
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/integration-mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,18 @@ jobs:
run: |
cat data/nextcloud.log
- name: Check Federation log
if: always()
id: check_federation_log
uses: andstor/file-existence-action@076e0072799f4942c8bc574a82233e1e4d13e9d6 # v3.0.0
with:
files: "data/tests-talk-real-federated-server/data/nextcloud.log"

- name: Print federation logs
if: always() && steps.check_federation_log.outputs.files_exists == 'true'
run: |
cat data/tests-talk-real-federated-server/data/nextcloud.log
summary:
permissions:
contents: none
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/integration-oci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,18 @@ jobs:
run: |
cat data/nextcloud.log
- name: Check Federation log
if: always()
id: check_federation_log
uses: andstor/file-existence-action@076e0072799f4942c8bc574a82233e1e4d13e9d6 # v3.0.0
with:
files: "data/tests-talk-real-federated-server/data/nextcloud.log"

- name: Print federation logs
if: always() && steps.check_federation_log.outputs.files_exists == 'true'
run: |
cat data/tests-talk-real-federated-server/data/nextcloud.log
summary:
permissions:
contents: none
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/integration-pgsql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,18 @@ jobs:
run: |
cat data/nextcloud.log
- name: Check Federation log
if: always()
id: check_federation_log
uses: andstor/file-existence-action@076e0072799f4942c8bc574a82233e1e4d13e9d6 # v3.0.0
with:
files: "data/tests-talk-real-federated-server/data/nextcloud.log"

- name: Print federation logs
if: always() && steps.check_federation_log.outputs.files_exists == 'true'
run: |
cat data/tests-talk-real-federated-server/data/nextcloud.log
summary:
permissions:
contents: none
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/integration-sqlite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,18 @@ jobs:
run: |
cat data/nextcloud.log
- name: Check Federation log
if: always()
id: check_federation_log
uses: andstor/file-existence-action@076e0072799f4942c8bc574a82233e1e4d13e9d6 # v3.0.0
with:
files: "data/tests-talk-real-federated-server/data/nextcloud.log"

- name: Print federation logs
if: always() && steps.check_federation_log.outputs.files_exists == 'true'
run: |
cat data/tests-talk-real-federated-server/data/nextcloud.log
summary:
permissions:
contents: none
Expand Down
3 changes: 3 additions & 0 deletions tests/integration/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ DESTROY_REAL_FEDERATED_SERVER=false

if [ ! -d "$REAL_FEDERATED_SERVER_CONFIG_DIR" ] || NEXTCLOUD_CONFIG_DIR="$REAL_FEDERATED_SERVER_CONFIG_DIR" ${ROOT_DIR}/occ status | grep "installed: false"; then
DESTROY_REAL_FEDERATED_SERVER=true
if [ $CI ]; then
DESTROY_REAL_FEDERATED_SERVER=false
fi
echo ''
echo -e "\033[0;31mReal federated server not installed in $REAL_FEDERATED_SERVER_CONFIG_DIR\033[0m"
echo -e "\033[0;33mPerforming basic SQLite installation with data directory in $REAL_FEDERATED_SERVER_DATA_DIR\033[0m"
Expand Down

0 comments on commit 63e0b9f

Please sign in to comment.