build(deps-dev): bump orchestra/testbench from 8.21.1 to 8.23.2 #389
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] | |
jobs: | |
phpunit: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
php: [ 8.1, 8.2, 8.3] | |
laravel: [10.*] | |
name: php ${{ matrix.php }} on laravel ${{ matrix.laravel }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v1 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
tools: composer:v2 | |
coverage: xdebug | |
extensions: bcmath, sqlite | |
- name: Get Composer Cache Directory | |
id: composer-cache | |
run: | | |
echo "::set-output name=dir::$(composer config cache-files-dir)" | |
- uses: actions/cache@v2 | |
with: | |
path: ${{ steps.composer-cache.outputs.dir }} | |
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}-${{ matrix.php }}-php${{ matrix.php }}-L${{ matrix.laravel }} | |
restore-keys: | | |
${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}-${{ matrix.php }}-php${{ matrix.php }} | |
${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}-${{ matrix.php }} | |
${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | |
${{ runner.os }}-composer- | |
- name: Install dependencies | |
run: | | |
composer update --prefer-dist --no-interaction --no-suggest | |
- name: Test | |
run: | | |
./vendor/bin/phpunit | |
- name: send coverage to codecov.io | |
uses: codecov/codecov-action@v1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: ./clover.xml | |
# - name: send coverage to codacy.com | |
# uses: codacy/codacy-coverage-reporter-action@master | |
# with: | |
# project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} | |
# coverage-reports: clover.xml |