Skip to content

Commit

Permalink
add sympony dependency in composer.json file
Browse files Browse the repository at this point in the history
Signed-off-by: nabim777 <[email protected]>
  • Loading branch information
nabim777 committed Apr 10, 2024
1 parent 7f4a1f1 commit 02ee064
Show file tree
Hide file tree
Showing 3 changed files with 4,120 additions and 3,861 deletions.
282 changes: 141 additions & 141 deletions .github/workflows/shared_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ on:
name: CI

jobs:
unittest-linting:
# unittest-linting:
name: unit tests and linting
strategy:
matrix:
nextcloudVersion: [ stable28 ]
phpVersion: [ 8.1 ]
phpVersion: [ 8.1, 8.2, 8.3 ]
runs-on: ubuntu-20.04
steps:
- name: Checkout for nightly CI
Expand Down Expand Up @@ -156,142 +156,142 @@ jobs:
min_coverage: '56'
path: './server/apps/integration_openproject/coverage/php/lcov.info'

# api-tests:
# name: API tests
# strategy:
# matrix:
# nextcloudVersion: [ stable26, stable27, stable28, stable29 ]
# phpVersion: [ 8.1, 8.2]
# database: [pgsql, mysql]
# runs-on: ubuntu-20.04
# container:
# image: ubuntu:latest
# credentials:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}
#
# defaults:
# run:
# working-directory: integration_openproject
#
# services:
# nextcloud:
# image: ghcr.io/juliushaertl/nextcloud-dev-php${{ matrix.phpVersion }}:20231202-1
# env:
# SQL: ${{ matrix.database }}
# SERVER_BRANCH: ${{ matrix.nextcloudVersion }}
# NEXTCLOUD_AUTOINSTALL: "YES"
# NEXTCLOUD_AUTOINSTALL_APPS: "viewer activity groupfolders integration_openproject"
# NEXTCLOUD_TRUSTED_DOMAINS: nextcloud
# VIRTUAL_HOST: "nextcloud"
# WITH_REDIS: "YES"
# NEXTCLOUD_AUTOINSTALL_APPS_WAIT_TIME: 120
# volumes:
# - /home/runner/work/integration_openproject/integration_openproject:/var/www/html/apps-shared
#
# database-postgres:
# image: postgres:14
# env:
# POSTGRES_PASSWORD: postgres
# POSTGRES_DB: nextcloud
# credentials:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}
#
# database-mysql:
# image: mariadb:10.5
# env:
# MYSQL_ROOT_PASSWORD: 'nextcloud'
# MYSQL_PASSWORD: 'nextcloud'
# MYSQL_USER: 'nextcloud'
# MYSQL_DATABASE: 'nextcloud'
# credentials:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}
#
# redis:
# image: redis:7
# credentials:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}
#
# steps:
# - name: Checkout for nightly CI
# if: github.event_name == 'schedule'
# uses: actions/checkout@v3
# with:
# path: integration_openproject
# ref: ${{ inputs.branch }}
#
# - name: Checkout
# if: github.event_name != 'schedule'
# uses: actions/checkout@v3
# with:
# path: integration_openproject
#
# - name: Checkout activity app
# uses: actions/checkout@v3
# with:
# repository: nextcloud/activity
# path: activity
# ref: ${{ matrix.nextcloudVersion }}
#
# - name: Checkout groupfolders app
# uses: actions/checkout@v3
# with:
# repository: nextcloud/groupfolders
# path: groupfolders
# ref: ${{ matrix.nextcloudVersion }}
#
# - name: Setup PHP ${{ matrix.phpVersion }}
# uses: shivammathur/setup-php@v2
# with:
# php-version: ${{ matrix.phpVersion }}
# tools: composer
# extensions: intl
#
# - name: Get composer cache directory
# id: composer-cache
# run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
#
# - name: Cache PHP dependencies
# uses: actions/cache@v3
# with:
# path: ${{ steps.composer-cache.outputs.dir }}
# key: ${{ runner.os }}-composer-${{ hashFiles('**/integration_openproject/composer.lock') }}
# restore-keys: ${{ runner.os }}-composer-
#
# - name: API Tests
# env:
# NEXTCLOUD_BASE_URL: http://nextcloud
# BEHAT_FILTER_TAGS: ${{
# matrix.nextcloudVersion == 'stable25' && '~@skipOnStable25' ||
# matrix.nextcloudVersion == 'stable26' && '~@skipOnStable26' ||
# ''
# }}
# run: |
# composer install --no-progress --prefer-dist --optimize-autoloader
# until curl -s -f http://nextcloud/status.php | grep '"installed":true'; do echo .; sleep 10; done
# make api-test

# notify-nightly-report:
# needs:
# - unittest-linting
# - api-tests
# if: ${{ always() && github.event_name == 'schedule' }}
# runs-on: ubuntu-latest
# steps:
# - name: checkout
# uses: actions/checkout@v2
#
# - name: Notify nightly report to element
# env:
# ELEMENT_CHAT_URL: ${{ secrets.ELEMENT_CHAT_URL }}
# ELEMENT_ROOM_ID: ${{ secrets.ELEMENT_ROOM_ID }}
# NIGHTLY_CI_USER_TOKEN: ${{ secrets.NIGHTLY_CI_USER_TOKEN }}
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# REPO_OWNER: nextcloud
# REPO_NAME: integration_openproject
# RUN_ID: ${{ github.run_id }}
# BRANCH_NAME: ${{ inputs.branch }}
# run: ./.github/scripts/notify-to-element.sh
api-tests:
name: API tests
strategy:
matrix:
nextcloudVersion: [ stable26, stable27, stable28, stable29 ]
phpVersion: [ 8.1, 8.2]
database: [pgsql, mysql]
runs-on: ubuntu-20.04
container:
image: ubuntu:latest
credentials:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

defaults:
run:
working-directory: integration_openproject

services:
nextcloud:
image: ghcr.io/juliushaertl/nextcloud-dev-php${{ matrix.phpVersion }}:20231202-1
env:
SQL: ${{ matrix.database }}
SERVER_BRANCH: ${{ matrix.nextcloudVersion }}
NEXTCLOUD_AUTOINSTALL: "YES"
NEXTCLOUD_AUTOINSTALL_APPS: "viewer activity groupfolders integration_openproject"
NEXTCLOUD_TRUSTED_DOMAINS: nextcloud
VIRTUAL_HOST: "nextcloud"
WITH_REDIS: "YES"
NEXTCLOUD_AUTOINSTALL_APPS_WAIT_TIME: 120
volumes:
- /home/runner/work/integration_openproject/integration_openproject:/var/www/html/apps-shared

database-postgres:
image: postgres:14
env:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: nextcloud
credentials:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

database-mysql:
image: mariadb:10.5
env:
MYSQL_ROOT_PASSWORD: 'nextcloud'
MYSQL_PASSWORD: 'nextcloud'
MYSQL_USER: 'nextcloud'
MYSQL_DATABASE: 'nextcloud'
credentials:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

redis:
image: redis:7
credentials:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

steps:
- name: Checkout for nightly CI
if: github.event_name == 'schedule'
uses: actions/checkout@v3
with:
path: integration_openproject
ref: ${{ inputs.branch }}

- name: Checkout
if: github.event_name != 'schedule'
uses: actions/checkout@v3
with:
path: integration_openproject

- name: Checkout activity app
uses: actions/checkout@v3
with:
repository: nextcloud/activity
path: activity
ref: ${{ matrix.nextcloudVersion }}

- name: Checkout groupfolders app
uses: actions/checkout@v3
with:
repository: nextcloud/groupfolders
path: groupfolders
ref: ${{ matrix.nextcloudVersion }}

- name: Setup PHP ${{ matrix.phpVersion }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.phpVersion }}
tools: composer
extensions: intl

- name: Get composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache PHP dependencies
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/integration_openproject/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-

- name: API Tests
env:
NEXTCLOUD_BASE_URL: http://nextcloud
BEHAT_FILTER_TAGS: ${{
matrix.nextcloudVersion == 'stable25' && '~@skipOnStable25' ||
matrix.nextcloudVersion == 'stable26' && '~@skipOnStable26' ||
''
}}
run: |
composer install --no-progress --prefer-dist --optimize-autoloader
until curl -s -f http://nextcloud/status.php | grep '"installed":true'; do echo .; sleep 10; done
make api-test
notify-nightly-report:
needs:
- unittest-linting
- api-tests
if: ${{ always() && github.event_name == 'schedule' }}
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2

- name: Notify nightly report to element
env:
ELEMENT_CHAT_URL: ${{ secrets.ELEMENT_CHAT_URL }}
ELEMENT_ROOM_ID: ${{ secrets.ELEMENT_ROOM_ID }}
NIGHTLY_CI_USER_TOKEN: ${{ secrets.NIGHTLY_CI_USER_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO_OWNER: nextcloud
REPO_NAME: integration_openproject
RUN_ID: ${{ github.run_id }}
BRANCH_NAME: ${{ inputs.branch }}
run: ./.github/scripts/notify-to-element.sh
15 changes: 15 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
{
"require": {
"symfony/config": "^6.4.6",
"symfony/dependency-injection": "^6.4.6",
"symfony/event-dispatcher": "^6.4.3",
"symfony/filesystem": "^6.3.12",
"symfony/var-exporter": "^6.4.6",
"symfony/console": "^5.4.28",
"symfony/error-handler": "^5.4.26",
"symfony/ldap": "^5.4.35",
"symfony/options-resolver": "^4.4.1",
"symfony/polyfill-mbstring": "^1.28.0",
"symfony/polyfill-php81": "^1.28",
"symfony/polyfill-php82": "^1.28",
"symfony/polyfill-php83": "^1.28"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"pact-foundation/pact-php": "^7.1",
Expand Down
Loading

0 comments on commit 02ee064

Please sign in to comment.