Skip to content

feature-products

feature-products #6

name: Pull Request | CI Pint
on: pull_request
jobs:
pint:
runs-on: ubuntu-latest
name: pull-request | ci pint
env:
PHP_VERSION: 8.5
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Setup PHP Environment
uses: shivammathur/setup-php@v2
with:
php-version: ${{ env.PHP_VERSION }}
extensions: dom, curl, fileinfo, mysql, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
- name: Prepare the .env file
run: cp .env.ci .env
- name: Cache Composer Dependencies
uses: actions/cache@v6
with:
path: |
~/.composer/cache/files
~/.composer/cache/repo
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Install Composer Dependencies
run: composer install --no-progress --prefer-dist --no-interaction --optimize-autoloader
- name: Execute code style check
run: ./vendor/bin/pint --test