diff --git a/.github/workflows/oci.yml b/.github/workflows/oci.yml index f5894f761bdb7..08937e0c8dd92 100644 --- a/.github/workflows/oci.yml +++ b/.github/workflows/oci.yml @@ -21,9 +21,24 @@ jobs: services: oracle: - image: deepdiver/docker-oracle-xe-11g # "wnameless/oracle-xe-11g-r2" + image: ghcr.io/gvenzl/oracle-xe:11 + + # Provide passwords and other environment variables to container + env: + ORACLE_RANDOM_PASSWORD: true + APP_USER: autotest + APP_USER_PASSWORD: owncloud + + # Forward Oracle port ports: - - "1521:1521" + - 1521:1521/tcp + + # Provide healthcheck script options for startup + options: >- + --health-cmd healthcheck.sh + --health-interval 10s + --health-timeout 5s + --health-retries 10 steps: - name: Checkout server @@ -40,7 +55,7 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php-versions }} - extensions: ctype,curl,dom,fileinfo,gd,imagick,intl,json,mbstring,oci8,openssl,pdo_sqlite,posix,sqlite,xml,zip + extensions: ctype,curl,dom,fileinfo,gd,imagick,intl,json,mbstring,oci8,openssl,pcntl,pdo_sqlite,posix,sqlite,xml,zip tools: phpunit:9 coverage: none diff --git a/.github/workflows/s3-primary.yml b/.github/workflows/s3-primary.yml index b49c63d4ff0b9..5c5b9d57cdb90 100644 --- a/.github/workflows/s3-primary.yml +++ b/.github/workflows/s3-primary.yml @@ -6,11 +6,12 @@ on: - master - stable* - jobs: s3-primary-tests-minio: runs-on: ubuntu-20.04 + if: ${{ github.repository_owner != 'nextcloud-gmbh' }} + strategy: # do not stop on another job's failure fail-fast: false @@ -25,7 +26,7 @@ jobs: env: MINIO_ACCESS_KEY: minio MINIO_SECRET_KEY: minio123 - image: bitnami/minio:2021.10.6 + image: bitnami/minio:2021.12.29 ports: - "9000:9000" @@ -49,6 +50,11 @@ jobs: ./occ maintenance:install --verbose --database=sqlite --database-name=nextcloud --database-host=127.0.0.1 --database-user=root --database-pass=rootpassword --admin-user admin --admin-pass password php -f index.php + - name: Wait for S3 + run: | + sleep 10 + curl -f -m 1 --retry-connrefused --retry 10 --retry-delay 10 http://localhost:9000/minio/health/ready + - name: PHPUnit working-directory: tests run: phpunit --configuration phpunit-autotest.xml --group DB,SLOWDB