Skip to content

Commit fb27ae8

Browse files
committed
Add call for Nextcloud initialization to PHPUnit GitHub Action (GHA).
1 parent 3d59b31 commit fb27ae8

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/php.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,10 @@ jobs:
9696
--volume="./solid:/var/www/html/apps/solid" \
9797
--workdir=/var/www/html/apps/solid \
9898
ghcr.io/pdsinterop/solid-nextcloud:main-${{ matrix.nextcloud_version }} \
99-
bin/phpunit --configuration phpunit.xml
99+
bash -c 'NEXTCLOUD_UPDATE=1 /entrypoint.sh "echo" \
100+
&& sudo -u www-data bash /init.sh \
101+
&& cd /var/www/html/apps/solid \
102+
&& bin/phpunit --configuration phpunit.xml'
100103
101104
# 03.quality.php.scan.dependencies-vulnerabilities.yml
102105
scan-dependencies-vulnerabilities:

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ COPY site.conf /etc/apache2/sites-enabled/000-default.conf
2929

3030
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
3131

32-
RUN composer install --working-dir=/usr/src/nextcloud/apps/solid --no-dev --prefer-dist \
33-
&& rm /usr/local/bin/composer
32+
RUN composer install --working-dir=/usr/src/nextcloud/apps/solid --prefer-dist \
33+
&& rm /usr/local/bin/composer
3434

3535
WORKDIR /var/www/html
3636
EXPOSE 443

0 commit comments

Comments
 (0)