Skip to content

Commit cb19e41

Browse files
authored
Refactor PHP workflow for improved directory structure
1 parent 5b22d34 commit cb19e41

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

.github/workflows/php.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,6 @@ jobs:
7171
COMPOSER_AUTH: '{"github-oauth": {"github.com": "${{ secrets.GITHUB_TOKEN }}"}}'
7272
XDEBUG_MODE: coverage
7373
volumes:
74-
- ./solid/:/var/www/html/apps/solid/
75-
- ./.config/:/var/www/html/apps/.config
76-
# Mount the PHP composer executable into the container.
7774
- /usr/bin/composer:/usr/bin/composer
7875
defaults:
7976
run:
@@ -93,10 +90,11 @@ jobs:
9390
- 30
9491
steps:
9592
- uses: actions/checkout@v5
96-
with:
97-
working-directory: /var/www/html/apps/
9893
- name: Debug info
9994
run: |
95+
rm /var/www/html/apps/solid/
96+
cp -r "${GITHUB_WORKSPACE}" /var/www/html/apps/
97+
10098
echo " =====> PWD:'$PWD'"
10199
ls -lA "$PWD"
102100
echo " =====> GITHUB_WORKSPACE:'${GITHUB_WORKSPACE}'"
@@ -113,9 +111,9 @@ jobs:
113111
COMPOSER_AUTH: '{"github-oauth": {"github.com": "${{ secrets.GITHUB_TOKEN }}"}}'
114112
- name: Run PHPUnit
115113
run: |
116-
${GITHUB_WORKSPACE}/solid/bin/phpunit \
117-
--configuration ${GITHUB_WORKSPACE}/solid/phpunit.xml \
118-
${GITHUB_WORKSPACE}/solid/tests/Unit
114+
/var/www/html/apps/solid/bin/phpunit \
115+
--configuration /var/www/html/apps/solid/phpunit.xml \
116+
/var/www/html/apps/solid/tests/Unit
119117
120118
# 03.quality.php.scan.dependencies-vulnerabilities.yml
121119
scan-dependencies-vulnerabilities:

0 commit comments

Comments
 (0)