-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: [email protected] <[email protected]>
- Loading branch information
Showing
5 changed files
with
240 additions
and
316 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,114 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
- "master" | ||
pull_request: | ||
schedule: | ||
- cron: '0 22 * * *' # run at 10 PM UTC | ||
- cron: "0 22 * * *" # run at 10 PM UTC | ||
|
||
name: CI | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
builds: | ||
uses: ./.github/workflows/shared_workflow.yml | ||
secrets: inherit | ||
with: | ||
branch: master | ||
api-tests: | ||
name: API tests | ||
strategy: | ||
matrix: | ||
nextcloudVersion: [stable28] | ||
phpVersionMajor: [8] | ||
phpVersionMinor: [1] | ||
database: [mysql] | ||
runs-on: ubuntu-22.04 | ||
container: | ||
image: ubuntu:22.04 | ||
credentials: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
defaults: | ||
run: | ||
working-directory: integration_openproject | ||
|
||
services: | ||
nextcloud: | ||
image: ghcr.io/juliushaertl/nextcloud-dev-php${{ format('{0}{1}', matrix.phpVersionMajor,matrix.phpVersionMinor) }}:latest@sha256:60493edf2097ee2a148e98511c7e8a5b2714e451fafccb3184e0d0477efef5d0 | ||
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: "NO" | ||
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 }} | ||
|
||
steps: | ||
- name: Checkout | ||
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 ${{ format('{0}.{1}', matrix.phpVersionMajor,matrix.phpVersionMinor) }} | ||
uses: shivammathur/[email protected] | ||
with: | ||
php-version: ${{ format('{0}.{1}', matrix.phpVersionMajor,matrix.phpVersionMinor) }} | ||
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 | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
name: Nightly CI Release | ||
# name: Nightly CI Release | ||
|
||
on: | ||
schedule: | ||
- cron: '0 22 * * *' # run at 10 PM UTC | ||
# on: | ||
# schedule: | ||
# - cron: '0 22 * * *' # run at 10 PM UTC | ||
|
||
jobs: | ||
builds: | ||
uses: ./.github/workflows/shared_workflow.yml | ||
secrets: inherit | ||
with: | ||
branch: release/2.4 | ||
# jobs: | ||
# builds: | ||
# uses: ./.github/workflows/shared_workflow.yml | ||
# secrets: inherit | ||
# with: | ||
# branch: release/2.4 |
Oops, something went wrong.