Merge pull request #8 from mention-me/dependabot/composer/guzzlehttp/… #26
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
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 |