Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/scripts/upgrade-integration-app.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
php occ maintenance:mode --on
php occ app:update --allow-unstable integration_openproject
php occ db:add-missing-columns
php occ db:add-missing-indices
php occ db:add-missing-primary-keys
php occ maintenance:mode --off
50 changes: 25 additions & 25 deletions .github/workflows/ci-workflow.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
# SPDX-FileCopyrightText: 2023 Jankari Tech Pvt. Ltd.
# SPDX-License-Identifier: AGPL-3.0-or-later
name: CI
# # SPDX-FileCopyrightText: 2023 Jankari Tech Pvt. Ltd.
# # SPDX-License-Identifier: AGPL-3.0-or-later
# name: CI

on:
push:
branches:
- 'master'
pull_request:
paths-ignore:
- '**.md'
- '**.txt'
- '**.sh'
- 'dev/**'
- 'l10n/**'
- 'img/**'
- 'docker-compose*'
# on:
# push:
# branches:
# - 'master'
# pull_request:
# paths-ignore:
# - '**.md'
# - '**.txt'
# - '**.sh'
# - 'dev/**'
# - 'l10n/**'
# - 'img/**'
# - 'docker-compose*'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
# concurrency:
# group: ${{ github.workflow }}-${{ github.ref }}
# cancel-in-progress: true

jobs:
builds:
uses: ./.github/workflows/shared_workflow.yml
secrets: inherit
with:
branch: master
# jobs:
# builds:
# uses: ./.github/workflows/shared_workflow.yml
# secrets: inherit
# with:
# branch: master
59 changes: 59 additions & 0 deletions .github/workflows/upgrade-testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# SPDX-FileCopyrightText: 2023 Jankari Tech Pvt. Ltd.
# SPDX-License-Identifier: AGPL-3.0-or-later
name: Upgrade Testing

on:
push:
branches:
- 'master'
pull_request:
paths-ignore:
- '**.md'
- '**.txt'
- '**.sh'
- 'dev/**'
- 'l10n/**'
- 'img/**'
- 'docker-compose*'

jobs:
builds:
name: Build and Test
runs-on: ubuntu-latest
steps:
- name: Checkout server (for phpunit and psalm)
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
with:
submodules: true
repository: nextcloud/server
path: server
ref: stable33

- name: Checkout integration_openproject app (initial version)
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
with:
repository: nextcloud/integration_openproject
path: server/apps/integration_openproject
ref: master # or the initial branch/tag before upgrade

- name: Install server and enable integration_openproject app
run: |
cd server/apps/integration_openproject
make
php ../../occ maintenance:install --admin-pass=admin
php ../../occ a:e integration_openproject

- name: Checkout integration_openproject app (release version for upgrade)
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
with:
repository: nextcloud/integration_openproject
path: server/apps/integration_openproject
ref: release/3.0 # the version to upgrade to

- name: Update integration_openproject app
working-directory: server/apps/integration_openproject
run: |
pwd
ls
php ../../occ upgrade
php ../../occ app:update --allow-unstable integration_openproject