Update Publish Task to Support Publishing to Chromatic #205
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: phpunit | |
on: | |
push: | |
branches: | |
- 1.x | |
pull_request: | |
branches: | |
- 1.x | |
jobs: | |
test: | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
php: ['8.0', '8.1', '8.2'] | |
name: P${{ matrix.php }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup PHP, with composer and extensions | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
- name: Cache Composer packages | |
id: composer-cache | |
uses: actions/cache@v2 | |
with: | |
path: vendor | |
key: ${{ runner.os }}-${{ matrix.php }}-node-${{ hashFiles('**/composer.lock') }} | |
restore-keys: | | |
${{ runner.os }}-${{ matrix.php }}-node- | |
- name: Install dependencies | |
if: "steps.composer-cache.outputs.cache-hit != 'true'" | |
run: composer install --no-progress --no-suggest | |
- name: Run test suite | |
run: vendor/bin/phpunit |