|
41 | 41 | required: false |
42 | 42 | type: string |
43 | 43 | default: '1' |
| 44 | + RUN_NPM_INSTALL: |
| 45 | + required: false |
| 46 | + type: string |
| 47 | + default: '0' |
| 48 | + RUN_COMPOSER_INSTALL: |
| 49 | + required: false |
| 50 | + type: string |
| 51 | + default: '0' |
44 | 52 | MIN_PHP_VERSION: |
45 | 53 | required: false |
46 | 54 | type: string |
@@ -230,6 +238,22 @@ jobs: |
230 | 238 | run: .github/setup-database.sh $DB $MYISAM |
231 | 239 | working-directory: ./phpBB3 |
232 | 240 |
|
| 241 | + - name: Install NPM dependencies |
| 242 | + if: ${{ inputs.RUN_NPM_INSTALL == '1' }} |
| 243 | + uses: actions/setup-node@v4 |
| 244 | + with: |
| 245 | + node-version: 20 |
| 246 | + |
| 247 | + - name: Run npm ci |
| 248 | + if: ${{ inputs.RUN_NPM_INSTALL == '1' }} |
| 249 | + run: npm ci |
| 250 | + working-directory: ./phpBB3/phpBB/ext/${{ env.EXTNAME }} |
| 251 | + |
| 252 | + - name: Install composer dependencies |
| 253 | + if: ${{ inputs.RUN_COMPOSER_INSTALL == '1' }} |
| 254 | + run: composer install |
| 255 | + working-directory: ./phpBB3/phpBB/ext/${{ env.EXTNAME }} |
| 256 | + |
233 | 257 | - name: Setup PHPUnit files |
234 | 258 | env: |
235 | 259 | DB: ${{steps.database-type.outputs.db}} |
@@ -355,6 +379,22 @@ jobs: |
355 | 379 | run: .github/setup-database.sh $DB $MYISAM |
356 | 380 | working-directory: ./phpBB3 |
357 | 381 |
|
| 382 | + - name: Install NPM dependencies |
| 383 | + if: ${{ inputs.RUN_NPM_INSTALL == '1' }} |
| 384 | + uses: actions/setup-node@v4 |
| 385 | + with: |
| 386 | + node-version: 20 |
| 387 | + |
| 388 | + - name: Run npm ci |
| 389 | + if: ${{ inputs.RUN_NPM_INSTALL == '1' }} |
| 390 | + run: npm ci |
| 391 | + working-directory: ./phpBB3/phpBB/ext/${{ env.EXTNAME }} |
| 392 | + |
| 393 | + - name: Install composer dependencies |
| 394 | + if: ${{ inputs.RUN_COMPOSER_INSTALL == '1' }} |
| 395 | + run: composer install |
| 396 | + working-directory: ./phpBB3/phpBB/ext/${{ env.EXTNAME }} |
| 397 | + |
358 | 398 | - name: Setup PHPUnit files |
359 | 399 | run: mkdir -p phpBB/ext/$EXTNAME/.github && cp .github/phpunit* $_ |
360 | 400 | working-directory: ./phpBB3 |
@@ -456,6 +496,22 @@ jobs: |
456 | 496 | run: .github/setup-database.sh $DB $MYISAM |
457 | 497 | working-directory: ./phpBB3 |
458 | 498 |
|
| 499 | + - name: Install NPM dependencies |
| 500 | + if: ${{ inputs.RUN_NPM_INSTALL == '1' }} |
| 501 | + uses: actions/setup-node@v4 |
| 502 | + with: |
| 503 | + node-version: 20 |
| 504 | + |
| 505 | + - name: Run npm ci |
| 506 | + if: ${{ inputs.RUN_NPM_INSTALL == '1' }} |
| 507 | + run: npm ci |
| 508 | + working-directory: ./phpBB3/phpBB/ext/${{ env.EXTNAME }} |
| 509 | + |
| 510 | + - name: Install composer dependencies |
| 511 | + if: ${{ inputs.RUN_COMPOSER_INSTALL == '1' }} |
| 512 | + run: composer install |
| 513 | + working-directory: ./phpBB3/phpBB/ext/${{ env.EXTNAME }} |
| 514 | + |
459 | 515 | - name: Setup PHPUnit files |
460 | 516 | run: mkdir -p phpBB/ext/$EXTNAME/.github && cp .github/phpunit* $_ |
461 | 517 | working-directory: ./phpBB3 |
|
0 commit comments