Skip to content

Commit e89e3eb

Browse files
authored
Refactor PHPUnit commands to use GITHUB_WORKSPACE
Updated PHPUnit run commands to use GITHUB_WORKSPACE variable for paths.
1 parent f07a8b1 commit e89e3eb

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/php.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -97,16 +97,16 @@ jobs:
9797
COMPOSER_AUTH: '{"github-oauth": {"github.com": "${{ secrets.GITHUB_TOKEN }}"}}'
9898
- name: Run PHPUnit
9999
run: |
100-
echo -e "PWD:'$PWD'"
101-
ls -lA $PWD
102-
ls -lA /var/www/html/apps/solid/
103-
ls -lA /var/www/html/apps/solid/bin
104-
ls -lA /var/www/html/apps/solid/vendor
105-
ls -lA /var/www/html/apps/solid/vendor/bin
100+
echo -e "PWD:'$PWD'\nGITHUB_WORKSPACE:'${GITHUB_WORKSPACE}'"
101+
ls -lA "$PWD"
102+
ls -lA "$GITHUB_WORKSPACE"
103+
ls -lA "${GITHUB_WORKSPACE}/solid/"
104+
ls -lA "${GITHUB_WORKSPACE}/solid/bin"
105+
ls -lA "${GITHUB_WORKSPACE}/solid/vendor/"
106106
107-
/var/www/html/apps/solid/bin/phpunit \
108-
--configuration /var/www/html/apps/solid/phpunit.xml \
109-
/var/www/html/apps/solid/tests/Unit
107+
"${GITHUB_WORKSPACE}/solid/bin/phpunit" \
108+
--configuration "${GITHUB_WORKSPACE}/solid/phpunit.xml" \
109+
"${GITHUB_WORKSPACE}/solid/tests/Unit"
110110
111111
# 03.quality.php.scan.dependencies-vulnerabilities.yml
112112
scan-dependencies-vulnerabilities:

0 commit comments

Comments
 (0)