|
10 | 10 | - '.config/phpcs.xml.dist' |
11 | 11 | - '.config/phpunit.xml.dist' |
12 | 12 | - '.github/workflows/php.yml' |
13 | | - - 'composer.json' |
14 | | - - 'composer.lock' |
| 13 | + - 'solid/composer.json' |
| 14 | + - 'solid/composer.lock' |
15 | 15 | branches: [ main ] |
16 | 16 | types: [ opened, reopened, synchronize ] |
17 | 17 | # This event occurs when there is a push to the repository. |
|
21 | 21 | - '.config/phpcs.xml.dist' |
22 | 22 | - '.config/phpunit.xml.dist' |
23 | 23 | - '.github/workflows/php.yml' |
24 | | - - 'composer.json' |
25 | | - - 'composer.lock' |
| 24 | + - 'solid/composer.json' |
| 25 | + - 'solid/composer.lock' |
26 | 26 | # Allow manually triggering the workflow. |
27 | 27 | workflow_dispatch: |
28 | 28 |
|
@@ -90,42 +90,26 @@ jobs: |
90 | 90 | - 30 |
91 | 91 | steps: |
92 | 92 | - uses: actions/checkout@v5 |
93 | | - - run: | |
94 | | - echo " =====> /usr/src/nextcloud/" |
95 | | - ls -lA /usr/src/nextcloud/ |
96 | | - - run: | |
97 | | - echo " =====> /usr/src/nextcloud/apps/" |
98 | | - ls -lA /usr/src/nextcloud/apps/ |
99 | | - - run: | |
100 | | - echo " =====> /usr/src/nextcloud/apps/solid/" |
101 | | - ls -lA /usr/src/nextcloud/apps/solid/ |
102 | | - - name: Initialize Nextcloud instance |
103 | | - # @CHECKME: cp site.conf /etc/apache2/sites-enabled/000-default.conf (?) |
104 | | - # @CHECKME: Use env instead? |
105 | | - # env: |
106 | | - # NEXTCLOUD_UPDATE: 1 |
| 93 | + # @CHECKME: cp site.conf /etc/apache2/sites-enabled/000-default.conf (?) |
| 94 | + - env: |
| 95 | + NEXTCLOUD_UPDATE: 1 |
| 96 | + name: Setup Test Environment |
107 | 97 | run: | |
108 | | - NEXTCLOUD_UPDATE=1 /entrypoint.sh "echo" |
| 98 | + git config --global --add safe.directory /usr/src/nextcloud/apps |
| 99 | + /entrypoint.sh "echo" |
109 | 100 | bash "${GITHUB_WORKSPACE}/init.sh" |
110 | | - working-directory: /usr/src/nextcloud/ |
111 | | - - name: Copy source-code into place |
112 | | - run: | |
113 | 101 | rm -r /usr/src/nextcloud/apps/solid/ |
114 | 102 | cp --archive --verbose "${GITHUB_WORKSPACE}/." /usr/src/nextcloud/apps/ |
115 | | - - run: | |
116 | | - echo " =====> /usr/src/nextcloud/apps/solid/" |
117 | | - ls -lA /usr/src/nextcloud/apps/solid/ |
| 103 | + working-directory: /usr/src/nextcloud/ |
118 | 104 | - name: Install and Cache Composer dependencies |
119 | 105 | uses: ramsey/composer-install@v3 |
120 | 106 | with: |
121 | 107 | working-directory: /usr/src/nextcloud/apps/solid |
122 | 108 | env: |
123 | 109 | COMPOSER_AUTH: '{"github-oauth": {"github.com": "${{ secrets.GITHUB_TOKEN }}"}}' |
124 | 110 | - name: Run PHPUnit |
125 | | - run: | |
126 | | - /usr/src/nextcloud/apps/solid/bin/phpunit \ |
127 | | - --configuration /usr/src/nextcloud/apps/solid/phpunit.xml \ |
128 | | - /usr/src/nextcloud/apps/solid/tests/Unit |
| 111 | + run: bin/phpunit --configuration phpunit.xml |
| 112 | + working-directory: /usr/src/nextcloud/apps/solid/ |
129 | 113 |
|
130 | 114 | # 03.quality.php.scan.dependencies-vulnerabilities.yml |
131 | 115 | scan-dependencies-vulnerabilities: |
|
0 commit comments