From 766f38dc739136e629a707df8916812cb032965f Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 15 Mar 2023 08:08:18 +0100 Subject: [PATCH] Save some CI time Signed-off-by: Joas Schilling --- .github/workflows/cypress.yml | 2 ++ .github/workflows/ftp.yml | 2 ++ .github/workflows/node-tests.yml | 3 +++ .github/workflows/oci.yml | 2 ++ .github/workflows/performance.yml | 2 ++ .github/workflows/phpunit-32bits.yml | 3 +++ .github/workflows/s3-external.yml | 4 ++++ .github/workflows/s3-primary-integration.yml | 2 ++ .github/workflows/s3-primary.yml | 2 ++ .github/workflows/smb-kerberos.yml | 2 ++ .github/workflows/stale.yml | 9 +++++---- .github/workflows/static-code-analysis.yml | 2 ++ .github/workflows/update-psalm-baseline.yml | 2 ++ 13 files changed, 33 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index 601482da994..ea1a741f574 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -16,6 +16,8 @@ jobs: init: runs-on: ubuntu-latest + if: ${{ github.repository_owner != 'nextcloud-gmbh' }} + steps: - name: Checkout server uses: actions/checkout@v3 diff --git a/.github/workflows/ftp.yml b/.github/workflows/ftp.yml index 643aef72c34..fa4c52ce67d 100644 --- a/.github/workflows/ftp.yml +++ b/.github/workflows/ftp.yml @@ -17,6 +17,8 @@ jobs: ftp-tests: runs-on: ubuntu-latest + if: ${{ github.repository_owner != 'nextcloud-gmbh' }} + strategy: # do not stop on another job's failure fail-fast: false diff --git a/.github/workflows/node-tests.yml b/.github/workflows/node-tests.yml index 596e4494e43..265c53cf746 100644 --- a/.github/workflows/node-tests.yml +++ b/.github/workflows/node-tests.yml @@ -10,6 +10,9 @@ on: jobs: versions: runs-on: ubuntu-latest + + if: ${{ github.repository_owner != 'nextcloud-gmbh' }} + outputs: nodeVersion: ${{ steps.versions.outputs.nodeVersion }} npmVersion: ${{ steps.versions.outputs.npmVersion }} diff --git a/.github/workflows/oci.yml b/.github/workflows/oci.yml index 34d548c7f9f..6578697f4ef 100644 --- a/.github/workflows/oci.yml +++ b/.github/workflows/oci.yml @@ -13,6 +13,8 @@ jobs: phpunit-oci: runs-on: ubuntu-20.04 + if: ${{ github.repository_owner != 'nextcloud-gmbh' }} + strategy: matrix: php-versions: ['8.0', '8.1', '8.2'] diff --git a/.github/workflows/performance.yml b/.github/workflows/performance.yml index ffdc63fae6e..44ca8954078 100644 --- a/.github/workflows/performance.yml +++ b/.github/workflows/performance.yml @@ -6,6 +6,8 @@ jobs: performance-testing: runs-on: ubuntu-latest + if: ${{ github.repository_owner != 'nextcloud-gmbh' }} + strategy: fail-fast: false matrix: diff --git a/.github/workflows/phpunit-32bits.yml b/.github/workflows/phpunit-32bits.yml index 1f91281bf16..3b03c00184b 100644 --- a/.github/workflows/phpunit-32bits.yml +++ b/.github/workflows/phpunit-32bits.yml @@ -15,6 +15,9 @@ concurrency: jobs: phpunit-32bits: runs-on: ubuntu-latest + + if: ${{ github.repository_owner != 'nextcloud-gmbh' }} + container: shivammathur/node:latest-i386 strategy: diff --git a/.github/workflows/s3-external.yml b/.github/workflows/s3-external.yml index 784fb752a61..a987f8a3f67 100644 --- a/.github/workflows/s3-external.yml +++ b/.github/workflows/s3-external.yml @@ -17,6 +17,8 @@ jobs: s3-external-tests-minio: runs-on: ubuntu-latest + if: ${{ github.repository_owner != 'nextcloud-gmbh' }} + strategy: # do not stop on another job's failure fail-fast: false @@ -68,6 +70,8 @@ jobs: s3-external-tests-localstack: runs-on: ubuntu-latest + if: ${{ github.repository_owner != 'nextcloud-gmbh' }} + strategy: # do not stop on another job's failure fail-fast: false diff --git a/.github/workflows/s3-primary-integration.yml b/.github/workflows/s3-primary-integration.yml index 5785cc858b4..2a2ab43f5c6 100644 --- a/.github/workflows/s3-primary-integration.yml +++ b/.github/workflows/s3-primary-integration.yml @@ -10,6 +10,8 @@ jobs: s3-primary-integration-tests-minio: runs-on: ubuntu-20.04 + if: ${{ github.repository_owner != 'nextcloud-gmbh' }} + strategy: # do not stop on another job's failure fail-fast: false diff --git a/.github/workflows/s3-primary.yml b/.github/workflows/s3-primary.yml index 78265af54f5..9b4269d737b 100644 --- a/.github/workflows/s3-primary.yml +++ b/.github/workflows/s3-primary.yml @@ -10,6 +10,8 @@ jobs: s3-primary-tests-minio: runs-on: ubuntu-20.04 + if: ${{ github.repository_owner != 'nextcloud-gmbh' }} + strategy: # do not stop on another job's failure fail-fast: false diff --git a/.github/workflows/smb-kerberos.yml b/.github/workflows/smb-kerberos.yml index 1cb8ae973ca..c069d665a6a 100644 --- a/.github/workflows/smb-kerberos.yml +++ b/.github/workflows/smb-kerberos.yml @@ -16,6 +16,8 @@ jobs: smb-kerberos-tests: runs-on: ubuntu-latest + if: ${{ github.repository_owner != 'nextcloud-gmbh' }} + name: smb-kerberos-sso steps: diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 13dc697664c..29e680b4698 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -7,12 +7,13 @@ on: jobs: stale: - runs-on: ubuntu-latest - + + if: ${{ github.repository_owner != 'nextcloud-gmbh' }} + permissions: issues: write - + steps: - uses: actions/stale@v5 with: @@ -29,4 +30,4 @@ jobs: days-before-stale: 30 days-before-close: 14 # debug-only: true - + diff --git a/.github/workflows/static-code-analysis.yml b/.github/workflows/static-code-analysis.yml index 451df6ab72a..4ae8babf843 100644 --- a/.github/workflows/static-code-analysis.yml +++ b/.github/workflows/static-code-analysis.yml @@ -11,6 +11,8 @@ jobs: static-code-analysis: runs-on: ubuntu-latest + if: ${{ github.repository_owner != 'nextcloud-gmbh' }} + steps: - name: Checkout uses: actions/checkout@v3 diff --git a/.github/workflows/update-psalm-baseline.yml b/.github/workflows/update-psalm-baseline.yml index 8b515d3eea7..1c0186f1ff7 100644 --- a/.github/workflows/update-psalm-baseline.yml +++ b/.github/workflows/update-psalm-baseline.yml @@ -9,6 +9,8 @@ jobs: update-psalm-baseline: runs-on: ubuntu-latest + if: ${{ github.repository_owner != 'nextcloud-gmbh' }} + strategy: fail-fast: false matrix: -- 2.39.5