Skip to content

Commit 5ab7e65

Browse files
committed
[squash]
1 parent cd74314 commit 5ab7e65

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/php.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ jobs:
7777
defaults:
7878
run:
7979
shell: bash
80+
working-directory: /usr/src/nextcloud/apps/
8081
name: PHP Unit Tests
8182
needs:
8283
- lint-php-syntax
@@ -94,11 +95,12 @@ jobs:
9495
# @CHECKME: cp site.conf /etc/apache2/sites-enabled/000-default.conf (?)
9596
- name: Setup Test Environment
9697
run: |
97-
git config --global --add safe.directory "${NEXTCLOUD_PATH}/apps"
98+
git config --global --add safe.directory /usr/src/nextcloud/apps
9899
/entrypoint.sh "echo"
99100
bash "${GITHUB_WORKSPACE}/init.sh"
100-
rm -r "${NEXTCLOUD_PATH}/apps/solid/"
101-
cp --archive --verbose "${GITHUB_WORKSPACE}/." "${NEXTCLOUD_PATH}/apps/"
101+
rm -r /usr/src/nextcloud/apps/solid/
102+
cp --archive --verbose "${GITHUB_WORKSPACE}/." /usr/src/nextcloud/apps/
103+
working-directory: /usr/src/nextcloud/
102104
- name: Install and Cache Composer dependencies
103105
uses: ramsey/composer-install@v3
104106
with:
@@ -107,8 +109,7 @@ jobs:
107109
COMPOSER_AUTH: '{"github-oauth": {"github.com": "${{ secrets.GITHUB_TOKEN }}"}}'
108110
- name: Run PHPUnit
109111
run: bin/phpunit --configuration phpunit.xml
110-
with:
111-
working-directory: /usr/src/nextcloud/apps/solid
112+
working-directory: /usr/src/nextcloud/apps/solid/
112113

113114
# 03.quality.php.scan.dependencies-vulnerabilities.yml
114115
scan-dependencies-vulnerabilities:

0 commit comments

Comments
 (0)