Skip to content

build(deps-dev): Bump laravel-zero/framework from 10.0.2 to 10.3.0 in /phpunit-slicer #99

build(deps-dev): Bump laravel-zero/framework from 10.0.2 to 10.3.0 in /phpunit-slicer

build(deps-dev): Bump laravel-zero/framework from 10.0.2 to 10.3.0 in /phpunit-slicer #99

name: phpunit-slicer-test
on:
push:
branches: [ master ]
paths:
- 'phpunit-slicer/**'
pull_request:
branches: [ master ]
paths:
- 'phpunit-slicer/**'
defaults:
run:
working-directory: ./phpunit-slicer
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php_version: [ 8.1, 8.2 ]
include:
- php_version: 8.2
record_coverage: true
concurrency:
group: phpunit-slicer-test-${{ github.workflow }}-${{ github.ref }}-${{ matrix.php_version }}
cancel-in-progress: true
steps:
- name: Checkout project
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Initialize PHP ${{ matrix.php_version }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php_version }}
coverage: pcov
- name: Configure Composer cache
id: composer-cache
uses: actions/cache@v3
with:
path: phpunit-slicer/vendor
key: ${{ runner.os }}-node-php_${{ matrix.php_version }}-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-node-php_${{ matrix.php_version }}-
- name: Validate Composer.json
run: composer validate --strict
- name: Composer install
if: steps.composer-cache.outputs.cache-hit != 'true'
run: composer install --optimize-autoloader --no-interaction --prefer-dist
- name: Test
run: php phpunit-slicer test
- name: Send coverage
if: ${{ matrix.record_coverage }}
run: bash <(curl -s https://codecov.io/bash) -f coverage/clover.xml -F phpunit-slicer
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}