|
2 | 2 | # SPDX-License-Identifier: MIT |
3 | 3 | name: PHPUnit files_external S3 |
4 | 4 | on: |
5 | | - pull_request: |
6 | | - schedule: |
7 | | - - cron: "5 2 * * *" |
| 5 | + workflow_call: |
8 | 6 |
|
9 | 7 | permissions: |
10 | 8 | contents: read |
11 | 9 |
|
12 | | -concurrency: |
13 | | - group: files-external-s3-${{ github.head_ref || github.run_id }} |
14 | | - cancel-in-progress: true |
15 | | - |
16 | 10 | jobs: |
17 | | - changes: |
18 | | - runs-on: ubuntu-latest-low |
19 | | - |
20 | | - outputs: |
21 | | - src: ${{ steps.changes.outputs.src}} |
22 | | - |
23 | | - steps: |
24 | | - - uses: dorny/paths-filter@ceb8a2b8f2d89434be7ff52d3de7ec3738c5cc9d # v4.0.3 |
25 | | - id: changes |
26 | | - continue-on-error: true |
27 | | - with: |
28 | | - filters: | |
29 | | - src: |
30 | | - - '.github/workflows/**' |
31 | | - - '3rdparty/**' |
32 | | - - 'vendor/**' |
33 | | - - 'vendor-bin/**' |
34 | | - - 'composer.json' |
35 | | - - 'composer.lock' |
36 | | - - 'apps/files/lib/**' |
37 | | - - 'apps/files/tests/**' |
38 | | - - 'apps/files_external/**' |
39 | | - - 'apps/files_sharing/lib/**' |
40 | | - - 'apps/files_sharing/tests/**' |
41 | | - - 'apps/files_trashbin/lib/**' |
42 | | - - 'apps/files_trashbin/tests/**' |
43 | | - - 'apps/files_versions/lib/**' |
44 | | - - 'apps/files_versions/tests/**' |
45 | | - - 'lib/private/Files/**' |
46 | | - - 'lib/public/Files/**' |
47 | | - - 'tests/lib/Files/**' |
48 | | -
|
49 | 11 | files-external-s3-minio: |
50 | 12 | runs-on: ubuntu-latest |
51 | | - needs: changes |
52 | 13 |
|
53 | | - if: ${{ github.repository_owner != 'nextcloud-gmbh' && needs.changes.outputs.src != 'false' }} |
| 14 | + if: ${{ github.repository_owner != 'nextcloud-gmbh' }} |
54 | 15 |
|
55 | 16 | strategy: |
56 | 17 | fail-fast: false |
|
123 | 84 |
|
124 | 85 | files-external-s3-localstack: |
125 | 86 | runs-on: ubuntu-latest |
126 | | - needs: changes |
127 | 87 |
|
128 | | - if: ${{ github.repository_owner != 'nextcloud-gmbh' && needs.changes.outputs.src != 'false' }} |
| 88 | + if: ${{ github.repository_owner != 'nextcloud-gmbh' }} |
129 | 89 |
|
130 | 90 | strategy: |
131 | 91 | matrix: |
@@ -181,13 +141,3 @@ jobs: |
181 | 141 | run: | |
182 | 142 | docker ps -a |
183 | 143 | docker ps -aq | while read container ; do IMAGE=$(docker inspect --format='{{.Config.Image}}' $container); echo $IMAGE; docker logs $container; echo "\n\n" ; done |
184 | | -
|
185 | | - s3-external-summary: |
186 | | - runs-on: ubuntu-latest-low |
187 | | - needs: [changes, files-external-s3-minio, files-external-s3-localstack] |
188 | | - |
189 | | - if: always() |
190 | | - |
191 | | - steps: |
192 | | - - name: Summary status |
193 | | - run: if ${{ needs.changes.outputs.src != 'false' && (needs.files-external-s3-minio.result != 'success' || needs.files-external-s3-localstack.result != 'success') }}; then exit 1; fi |
0 commit comments