|
| 1 | +# SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors |
| 2 | +# SPDX-License-Identifier: MIT |
| 3 | + |
| 4 | +name: Storage |
| 5 | + |
| 6 | +on: |
| 7 | + pull_request: |
| 8 | + schedule: |
| 9 | + - cron: "5 2 * * *" |
| 10 | + |
| 11 | +permissions: |
| 12 | + contents: read |
| 13 | + |
| 14 | +concurrency: |
| 15 | + group: storage-${{ github.head_ref || github.run_id }} |
| 16 | + cancel-in-progress: true |
| 17 | + |
| 18 | +# GitHub allows a maximum of 20 reusable workflows per caller |
| 19 | +jobs: |
| 20 | + changes: |
| 21 | + runs-on: ubuntu-latest-low |
| 22 | + permissions: |
| 23 | + contents: read |
| 24 | + pull-requests: read |
| 25 | + |
| 26 | + outputs: |
| 27 | + src: ${{ steps.changes.outputs.src }} |
| 28 | + files-external: ${{ steps.changes.outputs.files-external }} |
| 29 | + integration: ${{ steps.changes.outputs.integration }} |
| 30 | + |
| 31 | + steps: |
| 32 | + - uses: dorny/paths-filter@ceb8a2b8f2d89434be7ff52d3de7ec3738c5cc9d # v4.0.3 |
| 33 | + id: changes |
| 34 | + continue-on-error: true |
| 35 | + with: |
| 36 | + filters: | |
| 37 | + shared: &shared |
| 38 | + - '3rdparty/**' |
| 39 | + - 'vendor/**' |
| 40 | + - 'vendor-bin/**' |
| 41 | + - 'composer.json' |
| 42 | + - 'composer.lock' |
| 43 | + - 'apps/files/lib/**' |
| 44 | + - 'apps/files/tests/**' |
| 45 | + - 'apps/files_external/**' |
| 46 | + - 'apps/files_sharing/lib/**' |
| 47 | + - 'apps/files_sharing/tests/**' |
| 48 | + - 'apps/files_trashbin/lib/**' |
| 49 | + - 'apps/files_trashbin/tests/**' |
| 50 | + - 'apps/files_versions/lib/**' |
| 51 | + - 'apps/files_versions/tests/**' |
| 52 | + - 'lib/private/Files/**' |
| 53 | + - 'lib/public/Files/**' |
| 54 | + - 'tests/lib/Files/**' |
| 55 | + src: |
| 56 | + - *shared |
| 57 | + - '.github/workflows/**' |
| 58 | + files-external: |
| 59 | + - *shared |
| 60 | + - '.github/workflows/files-external.yml' |
| 61 | + integration: |
| 62 | + - 'build/integration/**' |
| 63 | +
|
| 64 | + files-external: |
| 65 | + needs: changes |
| 66 | + if: needs.changes.outputs.files-external != 'false' |
| 67 | + uses: ./.github/workflows/files-external.yml |
| 68 | + |
| 69 | + object-storage-azure: |
| 70 | + needs: changes |
| 71 | + if: needs.changes.outputs.src != 'false' |
| 72 | + uses: ./.github/workflows/object-storage-azure.yml |
| 73 | + |
| 74 | + object-storage-s3: |
| 75 | + needs: changes |
| 76 | + if: needs.changes.outputs.src != 'false' |
| 77 | + uses: ./.github/workflows/object-storage-s3.yml |
| 78 | + |
| 79 | + object-storage-swift: |
| 80 | + needs: changes |
| 81 | + if: needs.changes.outputs.src != 'false' |
| 82 | + uses: ./.github/workflows/object-storage-swift.yml |
| 83 | + |
| 84 | + integration-s3-primary: |
| 85 | + needs: changes |
| 86 | + if: needs.changes.outputs.src != 'false' || needs.changes.outputs.integration != 'false' |
| 87 | + uses: ./.github/workflows/integration-s3-primary.yml |
| 88 | + |
| 89 | + summary: |
| 90 | + permissions: |
| 91 | + contents: none |
| 92 | + runs-on: ubuntu-latest-low |
| 93 | + needs: [changes, files-external, object-storage-azure, object-storage-s3, object-storage-swift, integration-s3-primary] |
| 94 | + |
| 95 | + if: always() |
| 96 | + |
| 97 | + name: storage-summary |
| 98 | + |
| 99 | + steps: |
| 100 | + # Skipped jobs are fine, they mean no relevant changes were detected |
| 101 | + - name: Summary status |
| 102 | + run: if ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}; then exit 1; fi |
0 commit comments