Skip to content

Merge pull request #8 from mention-me/dependabot/composer/guzzlehttp/… #26

Merge pull request #8 from mention-me/dependabot/composer/guzzlehttp/…

Merge pull request #8 from mention-me/dependabot/composer/guzzlehttp/… #26

Workflow file for this run

name: Test
on:
- push
- pull_request
env:
php-version: 7.3
jobs:
phpunit:
name: PHPUnit
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Get Composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache Composer packages
uses: actions/[email protected]
with:
path: |
${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Setup PHP with Composer
uses: shivammathur/[email protected]
with:
php-version: ${{ env.php-version }}
- run: composer validate
- run: composer install --no-progress
- name: Run PHPUnit
run: $(composer config bin-dir)/phpunit --colors=always --configuration phpunit.xml --testsuite TrustpilotTestSuite