diff --git a/.github/scripts/upgrade-integration-app.sh b/.github/scripts/upgrade-integration-app.sh new file mode 100644 index 000000000..f03169a74 --- /dev/null +++ b/.github/scripts/upgrade-integration-app.sh @@ -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 \ No newline at end of file diff --git a/.github/workflows/ci-workflow.yml b/.github/workflows/ci-workflow.yml index e360e6a89..ecb9997af 100644 --- a/.github/workflows/ci-workflow.yml +++ b/.github/workflows/ci-workflow.yml @@ -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 diff --git a/.github/workflows/upgrade-testing.yml b/.github/workflows/upgrade-testing.yml new file mode 100644 index 000000000..31e22b0d6 --- /dev/null +++ b/.github/workflows/upgrade-testing.yml @@ -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 \ No newline at end of file