aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2024-02-05 16:52:42 +0100
committerGitHub <noreply@github.com>2024-02-05 16:52:42 +0100
commit613409bf0be7086743c02bb3dcf964d69594e901 (patch)
treebd9b282add4ff1731fcdda9212ff19fdad2eef8f /.github
parentd7dc0f3fff1eed8ea1309c9d1d68b641756c7a4d (diff)
parentdc5ef9ca7a6cd6ddb63c7878cb474336b8dcbb48 (diff)
downloadnextcloud-server-613409bf0be7086743c02bb3dcf964d69594e901.tar.gz
nextcloud-server-613409bf0be7086743c02bb3dcf964d69594e901.zip
Merge pull request #43354 from nextcloud/fix/run-integration-only-if-needed
fix(CI): Only run integration tests if needed
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/integration-s3-primary.yml44
-rw-r--r--.github/workflows/integration-sqlite.yml3
2 files changed, 31 insertions, 16 deletions
diff --git a/.github/workflows/integration-s3-primary.yml b/.github/workflows/integration-s3-primary.yml
index ba43cb4710e..e6170aa43f2 100644
--- a/.github/workflows/integration-s3-primary.yml
+++ b/.github/workflows/integration-s3-primary.yml
@@ -1,27 +1,41 @@
name: S3 primary storage integration tests
on:
pull_request:
- paths:
- - '.github/workflows/**'
- - '3rdparty/**'
- - 'build/integration/**'
- - '**/*.php'
- - '**/lib/**'
- - '**/tests/**'
- - '**/vendor-bin/**'
- - '.php-cs-fixer.dist.php'
- - 'composer.json'
- - 'composer.lock'
concurrency:
group: integration-s3-primary-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
+ changes:
+ runs-on: ubuntu-latest-low
+
+ outputs:
+ src: ${{ steps.changes.outputs.src}}
+
+ steps:
+ - uses: dorny/paths-filter@0bc4621a3135347011ad047f9ecf449bf72ce2bd # v3.0.0
+ id: changes
+ continue-on-error: true
+ with:
+ filters: |
+ src:
+ - '.github/workflows/**'
+ - '3rdparty/**'
+ - '**/*.php'
+ - '**/lib/**'
+ - '**/tests/**'
+ - '**/vendor-bin/**'
+ - 'build/integration/**'
+ - '.php-cs-fixer.dist.php'
+ - 'composer.json'
+ - 'composer.lock'
+
integration-s3-primary:
runs-on: ubuntu-latest
+ needs: changes
- if: ${{ github.repository_owner != 'nextcloud-gmbh' }}
+ if: needs.changes.outputs.src != 'false' && github.repository_owner != 'nextcloud-gmbh'
strategy:
# do not stop on another job's failure
@@ -91,11 +105,13 @@ jobs:
s3-primary-integration-summary:
+ permissions:
+ contents: none
runs-on: ubuntu-latest-low
- needs: [integration-s3-primary]
+ needs: [changes, integration-s3-primary]
if: always()
steps:
- name: Summary status
- run: if ${{ needs.integration-s3-primary.result != 'success' }}; then exit 1; fi
+ run: if ${{ needs.changes.outputs.src != 'false' && needs.integration-s3-primary.result != 'success' }}; then exit 1; fi
diff --git a/.github/workflows/integration-sqlite.yml b/.github/workflows/integration-sqlite.yml
index e2d53156121..edf65b810f2 100644
--- a/.github/workflows/integration-sqlite.yml
+++ b/.github/workflows/integration-sqlite.yml
@@ -20,8 +20,7 @@ jobs:
runs-on: ubuntu-latest-low
outputs:
- # FIXME src: ${{ steps.changes.outputs.src}}
- src: 'true'
+ src: ${{ steps.changes.outputs.src}}
steps:
- uses: dorny/paths-filter@0bc4621a3135347011ad047f9ecf449bf72ce2bd # v3.0.0