Merge pull request #760 from nextcloud/ci/skip-master-nc

ci: skip nextcloud master branch in release branches
This commit is contained in:
Sawjan Gurung 2025-01-27 12:48:02 +05:45 коммит произвёл GitHub
Родитель 977973383e 51ad9cccf5
Коммит d2e7ba914b
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
2 изменённых файлов: 26 добавлений и 15 удалений

Просмотреть файл

@ -1,5 +1,8 @@
name: Nightly CI Release
name: Nightly CI (Release branch)
# workflow can be scheduled ONLY from DEFAULT branch
# > This event will only trigger a workflow run if the workflow file is on the default branch.
# See: https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#schedule
on:
schedule:
- cron: '0 23 * * *' # run at 10 PM UTC

36
.github/workflows/shared_workflow.yml поставляемый
Просмотреть файл

@ -11,11 +11,18 @@ jobs:
name: unit tests and linting
strategy:
matrix:
nextcloudVersion: [ stable31 ]
nextcloudVersion: [ stable31, master ]
phpVersion: [ 8.1, 8.2, 8.3 ]
# This condition is temporary and can be removed once Nextcloud 31 support is added in the integration app for the release/2.7 branch
isReleaseBranch:
- ${{ inputs.branch == 'release/2.7'}}
- ${{ startsWith(inputs.branch, 'release/') || startsWith(github.base_ref, 'release/') || startsWith(github.ref, 'refs/heads/release/') }}
# will be overridden by the include section
exclude:
- nextcloudVersion: master
isReleaseBranch: true
- nextcloudVersion: master
phpVersion: 8.1
- nextcloudVersion: master
phpVersion: 8.2
include:
- nextcloudVersion: stable27
phpVersion: 8.0
@ -25,9 +32,6 @@ jobs:
phpVersion: 8.1
- nextcloudVersion: stable30
phpVersion: 8.2
- nextcloudVersion: master
phpVersion: 8.3
isReleaseBranch: false
runs-on: ubuntu-20.04
steps:
- name: Checkout for nightly CI
@ -185,13 +189,22 @@ jobs:
name: API tests
strategy:
matrix:
nextcloudVersion: [ stable31 ]
nextcloudVersion: [ stable31, master ]
phpVersionMajor: [ 8 ]
phpVersionMinor: [ 1, 2, 3 ]
database: [ mysql ]
# This condition is temporary and can be removed once Nextcloud 31 support is added in the integration app for the release/2.7 branch
isReleaseBranch:
- ${{ inputs.branch == 'release/2.7'}}
- ${{ startsWith(inputs.branch, 'release/') || startsWith(github.base_ref, 'release/') || startsWith(github.ref, 'refs/heads/release/') }}
# will be overridden by the include section
exclude:
- nextcloudVersion: master
isReleaseBranch: true
- nextcloudVersion: master
phpVersionMajor: 8
phpVersionMinor: 1
- nextcloudVersion: master
phpVersionMajor: 8
phpVersionMinor: 2
include:
# Each database once on the newest Server with preinstalled PHP version
- nextcloudVersion: stable31
@ -214,11 +227,6 @@ jobs:
phpVersionMajor: 8
phpVersionMinor: 2
database: mysql
- nextcloudVersion: master
phpVersionMajor: 8
phpVersionMinor: 3
database: mysql
isReleaseBranch: false
runs-on: ubuntu-20.04
container: