Skip to content

Commit

Permalink
Update config for github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
froemken committed Aug 27, 2021
1 parent 2366b92 commit a1d3f54
Showing 1 changed file with 23 additions and 6 deletions.
29 changes: 23 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,45 @@ on: [pull_request]

jobs:
build:
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
typo3: [^9.5, ^10.4]
php: ['7.2', '7.3', '7.4']
os: [ubuntu-latest]

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up PHP Version ${{ matrix.php }}
run: |
sudo update-alternatives --set php /usr/bin/php${{ matrix.php }}
php -v
- name: Setup PHP ${{ matrix.php }}, with composer and extensions
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mbstring, dom, zip, mysql

- name: Validate composer.json and composer.lock
run: composer validate

- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: Cache composer dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-

- name: Install dependencies with typo3/cms-core:${{ matrix.typo3 }}
run: |
composer require typo3/cms-core:${{ matrix.typo3 }} --no-progress
composer require typo3/cms-extensionmanager:${{ matrix.typo3 }} --no-progress
# SF: Remove next line, if version 2.13.2 was released
# Issue: https://github.com/Nimut/testing-framework/issues/136
composer require doctrine/dbal:2.10.4 doctrine/cache:^1.0 --no-progress
git checkout composer.json
- name: php-cs-fixer
Expand Down

0 comments on commit a1d3f54

Please sign in to comment.