Skip to content

Update CacheQueryBuilderTest.php #114

Update CacheQueryBuilderTest.php

Update CacheQueryBuilderTest.php #114

Workflow file for this run

name: Test package
on: [push, pull_request]
jobs:
build-and-test:
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }}
runs-on: ubuntu-latest
strategy:
matrix:
php: [8.2, 8.3, 8.4]
laravel: [11.*]
stability: [prefer-stable]
include:
- laravel: 11.*
testbench: 9.*
collision: 8.*
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ~/.composer/cache/files
key: dependencies-composer-${{ hashFiles('composer.json') }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath
- name: Install dependencies
run: |
composer require "orchestra/testbench:${{ matrix.testbench }}" "nunomaduro/collision:${{ matrix.collision }}" --dev --no-interaction --no-update --ansi
composer update --${{ matrix.stability }} --prefer-dist --no-interaction --ansi
- name: Execute tests
run: composer test:coverage
- name: Upload to Codecov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODE_COV_TOKEN }}
files: .coverage/clover.xml
verbose: true