Merge branch 'feature/typo3v12update' into 'main' #16
This file contains 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: [push, pull_request, release] | |
name: Test | |
jobs: | |
# roave_bc_check: | |
# name: Roave BC Check | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@master | |
# - name: fetch tags | |
# run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* | |
# - name: Roave BC Check | |
# uses: docker://nyholm/roave-bc-check-ga | |
test: | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
matrix: | |
operating-system: [ 'ubuntu-latest' ] | |
php: [ '7.4', '8.0' , '8.1' ] | |
composer-options: [ '', '--prefer-lowest' ] | |
composer-versions: [ 'composer:v2' ] | |
fail-fast: true | |
name: PHP ${{ matrix.php }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
- name: Install PHP | |
uses: shivammathur/setup-php@master | |
with: | |
php-version: ${{ matrix.php }} | |
tools: ${{ matrix.composer-versions }} | |
extensions: xdebug, mbstring, posix | |
- name: Get composer cache directory | |
id: composercache | |
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | |
- name: Cache dependencies | |
uses: actions/cache@v2 | |
with: | |
path: ${{ steps.composercache.outputs.dir }} | |
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | |
restore-keys: ${{ runner.os }}-composer- | |
- name: Install dependencies | |
run: composer update --prefer-dist --no-progress --no-suggest ${{ matrix.composer-options }} | |
- name: Set git variables | |
run: | | |
git config --global user.email "git@cben.co" | |
git config --global user.name "Christian Rodriguez Benthake" | |
- name: Run grumphp | |
if: matrix.php != '8.1' | |
run: php vendor/bin/grumphp run --no-interaction | |
- name: Run tests | |
run: PIXELBOXX_DOMAIN=${{ secrets.PIXELBOXX_DOMAIN }} PIXELBOXX_USER=${{ secrets.PIXELBOXX_USER }} PIXELBOXX_PASSWORD=${{ secrets.PIXELBOXX_PASSWORD }} XDEBUG_MODE=coverage vendor/bin/pest --testdox --color=always |