removed unused imports and uncommented code #232
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: pull_request | |
name: Composer install | |
jobs: | |
test-composer-install: | |
runs-on: ubuntu-latest | |
env: | |
COMPOSER_ALLOW_SUPERUSER: 1 | |
strategy: | |
fail-fast: false | |
matrix: | |
php: ["8.3"] | |
name: Composer install in prod mode (PHP ${{ matrix.php}}) | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup PHP, with composer and extensions | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php}} | |
extensions: apcu, ctype, iconv, imagick, json, redis, soap, xmlreader, zip | |
coverage: none | |
- name: Get composer cache directory | |
id: composer-cache | |
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | |
- name: Cache composer dependencies | |
uses: actions/cache@v4 | |
with: | |
path: ${{ steps.composer-cache.outputs.dir }} | |
key: ${{ matrix.php }}-composer-${{ hashFiles('**/composer.lock') }} | |
restore-keys: ${{ matrix.php }}-composer- | |
- name: "[prod] Composer install with exported .env variables" | |
run: | | |
set -a && source .env && set +a | |
APP_ENV=prod composer install --no-dev -o |