Skip to content

build(deps-dev): bump phpunit/phpunit from 10.5.11 to 10.5.20 #384

build(deps-dev): bump phpunit/phpunit from 10.5.11 to 10.5.20

build(deps-dev): bump phpunit/phpunit from 10.5.11 to 10.5.20 #384

Workflow file for this run

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