Skip to content

Commit

Permalink
Merge pull request #1070 from pulsejet/pulsejet/ci
Browse files Browse the repository at this point in the history
ci: update to stable28
  • Loading branch information
pulsejet authored Mar 11, 2024
2 parents 373ef5c + f3264ff commit 03efdf8
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 18 deletions.
42 changes: 30 additions & 12 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ jobs:
# do not stop on another job's failure
fail-fast: false
matrix:
php-versions: ['8.1']
server-versions: ['stable27']
php-versions: ['8.2']
server-versions: ['stable28']

services:
mysql:
Expand Down Expand Up @@ -95,8 +95,16 @@ jobs:
DB_PORT: 4444
run: |
mkdir data
php occ maintenance:install --verbose --database=mysql --database-name=nextcloud --database-host=127.0.0.1 --database-port=$DB_PORT --database-user=root --database-pass=rootpassword --admin-user admin --admin-pass password
git clone --depth 1 --branch ${{ matrix.server-versions }} https://github.com/nextcloud/viewer apps/viewer
php occ maintenance:install \
--verbose \
--database=mysql \
--database-name=nextcloud \
--database-host=127.0.0.1 \
--database-port=$DB_PORT \
--database-user=root \
--database-pass=rootpassword \
--admin-user admin \
--admin-pass password
- name: Run tests
run: |
Expand All @@ -116,8 +124,8 @@ jobs:
# do not stop on another job's failure
fail-fast: false
matrix:
php-versions: ['8.1']
server-versions: ['stable27']
php-versions: ['8.2']
server-versions: ['stable28']

services:
postgres:
Expand Down Expand Up @@ -168,8 +176,16 @@ jobs:
DB_PORT: 4444
run: |
mkdir data
php occ maintenance:install --verbose --database=pgsql --database-name=nextcloud --database-host=127.0.0.1 --database-port=$DB_PORT --database-user=postgres --database-pass=rootpassword --admin-user admin --admin-pass password
git clone --depth 1 --branch ${{ matrix.server-versions }} https://github.com/nextcloud/viewer apps/viewer
php occ maintenance:install \
--verbose \
--database=pgsql \
--database-name=nextcloud \
--database-host=127.0.0.1 \
--database-port=$DB_PORT \
--database-user=postgres \
--database-pass=rootpassword \
--admin-user admin \
--admin-pass password
- name: Run tests
run: |
Expand All @@ -189,8 +205,8 @@ jobs:
# do not stop on another job's failure
fail-fast: false
matrix:
php-versions: ['8.1']
server-versions: ['stable27']
php-versions: ['8.2']
server-versions: ['stable28']

steps:
- name: Checkout server
Expand Down Expand Up @@ -227,8 +243,10 @@ jobs:
DB_PORT: 4444
run: |
mkdir data
php occ maintenance:install --verbose --admin-user admin --admin-pass password
git clone --depth 1 --branch ${{ matrix.server-versions }} https://github.com/nextcloud/viewer apps/viewer
php occ maintenance:install \
--verbose \
--admin-user admin \
--admin-pass password
- name: Run tests
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/static-analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
with:
submodules: true
repository: nextcloud/server
ref: stable27
ref: stable28

- name: Checkout the app
uses: actions/checkout@v4
Expand Down
6 changes: 2 additions & 4 deletions lib/Controller/OtherController.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,7 @@ public function getUserConfig(): Http\Response
{
return Util::guardEx(function () {
// get memories version
$version = \OC::$server->get(\OCP\App\IAppManager::class)
->getAppInfo('memories')['version']
;
$version = \OC::$server->get(\OCP\App\IAppManager::class)->getAppVersion('memories');

// get user if logged in
try {
Expand Down Expand Up @@ -136,7 +134,7 @@ public function describeApi(): Http\Response
$urlGenerator = \OC::$server->get(\OCP\IURLGenerator::class);

$info = [
'version' => $appManager->getAppInfo('memories')['version'],
'version' => $appManager->getAppVersion('memories'),
'baseUrl' => $urlGenerator->linkToRouteAbsolute('memories.Page.main'),
'loginFlowUrl' => $urlGenerator->linkToRouteAbsolute('core.ClientFlowLoginV2.init'),
];
Expand Down
1 change: 1 addition & 0 deletions lib/Controller/TemplateResponsePatch.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use OCP\AppFramework\Http\TemplateResponse;

/** @psalm-suppress MissingTemplateParam */
class TemplateResponsePatch extends TemplateResponse
{
public function render()
Expand Down
1 change: 0 additions & 1 deletion scripts/ci-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ make bin-ext
cd ../..

# Enable apps
php occ app:enable --force viewer
php occ app:enable --force memories

# Run repair steps
Expand Down

0 comments on commit 03efdf8

Please sign in to comment.