Skip to content

Add attribute_precedence option #140

Add attribute_precedence option

Add attribute_precedence option #140

Workflow file for this run

name: Split
on:
push:
branches: [ '**' ]
pull_request:
branches: [ '**' ]
jobs:
split:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['8.0']
setup: ['stable']
name: PHP ${{ matrix.php }} - ${{ matrix.setup }}
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: split-${{ runner.os }}-${{ matrix.setup }}-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }}
restore-keys: |
split-${{ runner.os }}-${{ matrix.setup }}-${{ matrix.php }}-
- name: Install dependencies
if: steps.composer-cache.outputs.cache-hit != 'true'
run: |
composer config version 1.9.0
composer require phug/split --no-update --no-interaction
composer update --prefer-dist ${{ matrix.setup != 'next' && format('--prefer-{0}', matrix.setup) || '' }} --no-progress --no-interaction
- name: Split monorepository
run: vendor/bin/split update --git-credentials=$REPOSITORY_CREDENTIALS
env:
REPOSITORY_CREDENTIALS: ${{ secrets.REPOSITORY_CREDENTIALS }}