| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- on:
- - pull_request
- - push
- name: composer-19
- jobs:
- tests:
- name: PHP-${{ matrix.php }}-${{ matrix.os }}
- env:
- key: cache-v1
- runs-on: ${{ matrix.os }}
- strategy:
- matrix:
- os:
- - ubuntu-latest
- php:
- - "5.4"
- - "5.5"
- - "5.6"
- - "7.0"
- - "7.1"
- - "7.2"
- - "7.3"
- - "7.4"
- - "8.0"
- composer:
- - "1.9.*"
- steps:
- - name: Configure git
- run: git config --global core.autocrlf false
- - name: Checkout
- uses: actions/checkout@v2.3.4
- - name: Determine composer cache directory
- run: echo "COMPOSER_CACHE_DIR=$(composer config cache-dir)" >> $GITHUB_ENV
- - name: Cache dependencies installed with composer
- uses: actions/cache@v2
- with:
- path: ${{ env.COMPOSER_CACHE_DIR }}
- key: php${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
- restore-keys: |
- php${{ matrix.php }}-composer-
- - name: Install composer
- run: composer require --dev "composer/composer:${{ matrix.composer }}" --update-with-dependencies
- - name: Run tests with phpunit
- run: |
- vendor/bin/phpunit --verbose --colors=always
- cd tests/scripts && sh run.sh
|