diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index 961bcd1..c232a5b 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -92,6 +92,13 @@ jobs: repository: nextcloud/context_chat_backend path: context_chat_backend/ + - name: Get backend app version + id: appinfo + uses: skjnldsv/xpath-action@7e6a7c379d0e9abc8acaef43df403ab4fc4f770c # master + with: + filename: context_chat_backend/appinfo/info.xml + expression: "/info/version/text()" + - name: Read package.json node and npm engines version uses: skjnldsv/read-package-engines-version-actions@v3 id: versions @@ -120,7 +127,7 @@ jobs: sleep 25 mkdir data ./occ maintenance:install --verbose --database=${{ matrix.databases }} --database-name=nextcloud --database-host=127.0.0.1 --database-port=$MYSQL_PORT --database-user=root --database-pass=rootpassword --admin-user admin --admin-pass password - php -S localhost:8080 & + composer run serve & - name: Set up Nextcloud if: ${{ matrix.databases == 'pgsql'}} @@ -128,7 +135,7 @@ jobs: sleep 25 mkdir data ./occ maintenance:install --verbose --database=${{ matrix.databases }} --database-name=nextcloud --database-host=127.0.0.1 --database-port=$PGSQL_PORT --database-user=root --database-pass=rootpassword --admin-user admin --admin-pass password - php -S localhost:8080 & + composer run serve & - name: Enable app and app_api run: ./occ app:enable -vvv -f ${{ env.APP_NAME }} app_api @@ -165,7 +172,7 @@ jobs: - name: Register backend run: | ./occ app_api:daemon:register --net host manual_install "Manual Install" manual-install http localhost http://localhost:8080 - ./occ app_api:app:register context_chat_backend manual_install --json-info "{\"appid\":\"context_chat_backend\",\"name\":\"Context Chat Backend\",\"daemon_config_name\":\"manual_install\",\"version\":\"2.2.0\",\"secret\":\"12345\",\"port\":10034,\"scopes\":[],\"system_app\":0}" --force-scopes --wait-finish + ./occ app_api:app:register context_chat_backend manual_install --json-info "{\"appid\":\"context_chat_backend\",\"name\":\"Context Chat Backend\",\"daemon_config_name\":\"manual_install\",\"version\":\"${{ fromJson(steps.appinfo.outputs.result).version }}\",\"secret\":\"12345\",\"port\":10034,\"scopes\":[],\"system_app\":0}" --force-scopes --wait-finish - name: Scan files run: | @@ -174,6 +181,8 @@ jobs: - name: Run prompt run: | + ./occ background-job:worker 'OC\TaskProcessing\SynchronousBackgroundJob' & + ./occ background-job:worker 'OC\TaskProcessing\SynchronousBackgroundJob' & ./occ context_chat:prompt admin "Which factors are taken into account for the Ethical AI Rating?" - name: Show logs