Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 28 additions & 1 deletion .github/workflows/app-upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
SQL: ${{ matrix.database }}
SERVER_BRANCH: ${{ matrix.nextcloudVersion }}
NEXTCLOUD_AUTOINSTALL: 'Yes'
NEXTCLOUD_AUTOINSTALL_APPS: oidc groupfolders user_oidc integration_openproject
NEXTCLOUD_AUTOINSTALL_APPS: oidc groupfolders user_oidc
NEXTCLOUD_AUTOINSTALL_APPS_WAIT_TIME: 60
WITH_REDIS: 'YES'
ports:
Expand Down Expand Up @@ -97,6 +97,26 @@ jobs:
cache: 'npm'
cache-dependency-path: 'integration_openproject/package-lock.json'

- name: Install integration_openproject
env:
GH_TOKEN: ${{ github.token }}
run: |
REPO=nextcloud/integration_openproject
VERSION=$(grep -oP '(?<=<version>)[^<]+' integration_openproject/appinfo/info.xml | cut -d. -f1,2)
STABLE_RELEASE_TAGS=$(gh release list --repo "${REPO}" --json tagName -q '.[].tagName' \
| grep -v nightly)
TAG=$(echo "${STABLE_RELEASE_TAGS}" | grep "^v${VERSION}\." | head -n1)
echo "${TAG}"
if [ -z "$TAG" ]; then
TAG=$(echo "${STABLE_RELEASE_TAGS}" | head -n1)
fi
gh release download "${TAG}" --repo "${REPO}" --pattern '*.tar.gz' --dir /tmp/base
docker cp /tmp/base nextcloud:/tmp/base
docker exec nextcloud bash -c '
tar -xzf /tmp/base/*.tar.gz -C /var/www/html/apps &&
occ app:enable integration_openproject'
docker exec nextcloud php occ app:list | grep integration_openproject

- name: Wait for Nextcloud server to be ready
run: |
if ! timeout 5m bash -c '
Expand Down Expand Up @@ -139,6 +159,9 @@ jobs:
cd build-app/publish
echo "NEXT_APP_VERSION=$(cat integration_openproject_new_version.txt)" >> $GITHUB_ENV

- name: show version
run: docker exec nextcloud php occ app:list | grep -E "integration_openproject|oidc|groupfolders|activity"

- name: Update integration_openproject app
run: |
# Start local appstore server
Expand Down Expand Up @@ -185,3 +208,7 @@ jobs:
BEHAT_FILTER_TAGS: '~@skip'
run: |
make api-test

- name: log
if: always()
run: docker exec nextcloud tail -n 200 /var/www/html/data/nextcloud.log
28 changes: 14 additions & 14 deletions .github/workflows/js-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@ on:
branches:
- 'master'
- 'release/**'
pull_request:
paths-ignore:
- 'tests/acceptance/**'
- 'tests/lib/**'
- 'tests/stub/**'
- 'dev/**'
- 'l10n/**'
- 'lib/**'
- '**.md'
- '**.txt'
- '**.sh'
- '**.php'
- 'composer.*'
- '**.xml'
# pull_request:
# paths-ignore:
# - 'tests/acceptance/**'
# - 'tests/lib/**'
# - 'tests/stub/**'
# - 'dev/**'
# - 'l10n/**'
# - 'lib/**'
# - '**.md'
# - '**.txt'
# - '**.sh'
# - '**.php'
# - 'composer.*'
# - '**.xml'

concurrency:
group: js-${{ github.workflow }}-${{ github.ref }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/nightly-ci-release-3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ name: Nightly CI (Release 3.3)
on:
schedule:
- cron: '0 23 * * *' # run at 11 PM UTC
pull_request:

jobs:
nightly-builds:
Expand Down
56 changes: 28 additions & 28 deletions .github/workflows/nightly-shared.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,40 +22,40 @@ concurrency:
cancel-in-progress: true

jobs:
js-unit-test:
uses: ./.github/workflows/js-unit.yml
secrets: inherit
with:
branch: ${{ inputs.branch }}
# js-unit-test:
# uses: ./.github/workflows/js-unit.yml
# secrets: inherit
# with:
# branch: ${{ inputs.branch }}

php-unit-api-test:
uses: ./.github/workflows/php-unit-api.yml
secrets: inherit
with:
branch: ${{ inputs.branch }}
nextcloud_versions: ${{ inputs.nextcloud_versions }}
php_versions: ${{ inputs.php_versions }}
# php-unit-api-test:
# uses: ./.github/workflows/php-unit-api.yml
# secrets: inherit
# with:
# branch: ${{ inputs.branch }}
# nextcloud_versions: ${{ inputs.nextcloud_versions }}
# php_versions: ${{ inputs.php_versions }}

app-upgrade-test:
uses: ./.github/workflows/app-upgrade.yml
with:
branch: ${{ inputs.branch }}
nextcloud_versions: ${{ inputs.app_upgrade_nc_versions }}

notify-nightly-report:
needs: [js-unit-test, php-unit-api-test, app-upgrade-test]
if: ${{ always() }}
runs-on: ubuntu-22.04
steps:
- name: checkout
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
# notify-nightly-report:
# needs: [js-unit-test, php-unit-api-test, app-upgrade-test]
# if: ${{ always() }}
# runs-on: ubuntu-22.04
# steps:
# - name: checkout
# uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8

- name: Notify Chat
env:
ELEMENT_CHAT_URL: ${{ secrets.ELEMENT_CHAT_URL }}
ELEMENT_ROOM_ID: ${{ secrets.ELEMENT_ROOM_ID }}
NIGHTLY_CI_USER_TOKEN: ${{ secrets.NIGHTLY_CI_USER_TOKEN }}
BRANCH_NAME: ${{ inputs.branch }}
NEEDS_JSON: ${{ toJson(needs) }}
run: |
./.github/scripts/notify-to-element.sh
# - name: Notify Chat
# env:
# ELEMENT_CHAT_URL: ${{ secrets.ELEMENT_CHAT_URL }}
# ELEMENT_ROOM_ID: ${{ secrets.ELEMENT_ROOM_ID }}
# NIGHTLY_CI_USER_TOKEN: ${{ secrets.NIGHTLY_CI_USER_TOKEN }}
# BRANCH_NAME: ${{ inputs.branch }}
# NEEDS_JSON: ${{ toJson(needs) }}
# run: |
# ./.github/scripts/notify-to-element.sh
24 changes: 12 additions & 12 deletions .github/workflows/php-unit-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,18 @@ on:
branches:
- 'master'
- 'release/**'
pull_request:
paths-ignore:
- 'tests/js/**'
- '**.md'
- '**.txt'
- '**.sh'
- '**.js'
- 'dev/**'
- 'l10n/**'
- 'img/**'
- 'src/**'
- 'package*.json'
# pull_request:
# paths-ignore:
# - 'tests/js/**'
# - '**.md'
# - '**.txt'
# - '**.sh'
# - '**.js'
# - 'dev/**'
# - 'l10n/**'
# - 'img/**'
# - 'src/**'
# - 'package*.json'

concurrency:
group: php-${{ github.workflow }}-${{ github.ref }}
Expand Down
Loading