Skip to content

Commit a237434

Browse files
committed
use checkout
Signed-off-by: nabim777 <nabinalemagar019@gmail.com>
1 parent ff7a108 commit a237434

1 file changed

Lines changed: 27 additions & 13 deletions

File tree

.github/workflows/upgrade-testing.yml

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# SPDX-FileCopyrightText: 2023 Jankari Tech Pvt. Ltd.
22
# SPDX-License-Identifier: AGPL-3.0-or-later
3-
name: CI
3+
name: Upgrade Testing
44

55
on:
66
push:
77
branches:
8-
- 'master'
8+
- 'master'
99
pull_request:
1010
paths-ignore:
1111
- '**.md'
@@ -29,17 +29,31 @@ jobs:
2929
path: server
3030
ref: stable33
3131

32-
- name: path checking
32+
- name: Checkout integration_openproject app (initial version)
33+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
34+
with:
35+
repository: nextcloud/integration_openproject
36+
path: server/apps/integration_openproject
37+
ref: master # or the initial branch/tag before upgrade
38+
39+
- name: Install server and enable integration_openproject app
3340
run: |
34-
pwd
35-
ls -l
36-
cd integration_openproject
37-
ls -l
41+
cd server/apps/integration_openproject
42+
make
43+
php ../../occ maintenance:install --admin-pass=admin
44+
php ../../occ a:e integration_openproject
3845
39-
- name: path check
46+
- name: Checkout integration_openproject app (release version for upgrade)
47+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
48+
with:
49+
repository: nextcloud/integration_openproject
50+
path: server/apps/integration_openproject
51+
ref: release/3.0 # the version to upgrade to
52+
53+
- name: Update integration_openproject app
54+
working-directory: server/apps/integration_openproject
4055
run: |
41-
git clone https://github.com/nextcloud/integration_openproject.git
42-
cd integration_openproject
43-
git checkout release/3.0
44-
git branch
45-
git pull
56+
pwd
57+
ls
58+
php ../../occ upgrade
59+
php ../../occ app:update --allow-unstable integration_openproject

0 commit comments

Comments
 (0)