Merge pull request #760 from nextcloud/ci/skip-master-nc
ci: skip nextcloud master branch in release branches
This commit is contained in:
Коммит
d2e7ba914b
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Загрузка…
Ссылка в новой задаче