Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 41 additions & 40 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,43 @@
name: Run Tests
on: [push]
name: run-tests

on:
- push
- pull_request

jobs:
run:
runs-on: ubuntu-latest
strategy:
max-parallel: 15
fail-fast: false
matrix:
php-versions: ['7.3', '7.4', '8.0', 8.1]
composer-flags: ['--prefer-lowest', '--prefer-stable']
env:
- LARAVEL_VERSION='^7.0' TESTBENCH_VERSION='^5.0'
- LARAVEL_VERSION='^8.0' TESTBENCH_VERSION='^6.0'
- LARAVEL_VERSION='^9.0' TESTBENCH_VERSION='^7.0'
name: Test on PHP ${{ matrix.php-versions }}, Laravel ${{ matrix.laravel-versions }} and ${{ matrix.composer-flags }}
steps:
- name: Checkout
uses: actions/checkout@master
- name: Install PHP
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php-versions }}
- name: Check Environment
run: |
${{ matrix.env }}
php -v
composer -V
php -m
echo "Laravel version ${LARAVEL_VERSION}"
echo "Orchestra Testbench version ${TESTBENCH_VERSION}"
- name: Install Dependencies
run: |
${{ matrix.env }}
composer config discard-changes true
composer self-update
composer require --dev "laravel/framework:${LARAVEL_VERSION}" --no-interaction --no-update
composer require --dev "orchestra/testbench:${TESTBENCH_VERSION}" --no-interaction --no-update
composer update ${{ matrix.composer-flags }} --prefer-dist --no-suggest --no-interaction
- name: Run PHPUnit
run: php vendor/bin/phpunit
test:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
php: [8.4, 8.3, 8.2]
laravel: [^12.0, ^11.0]
dependency-version: [prefer-lowest, prefer-stable]
include:
- laravel: ^11.0
testbench: ^9.0
- laravel: ^12.0
testbench: ^10.0

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}

steps:
- name: Checkout code
uses: actions/checkout@v4

- 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, soap, intl, gd, exif, iconv, imagick
coverage: none

- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction

- name: Execute tests
run: vendor/bin/phpunit
1 change: 1 addition & 0 deletions .phpunit.result.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version":1,"defects":[],"times":{"ImLiam\\BladeHelper\\Tests\\Unit\\BladeHelperTest::custom_named_helpers_compile_correctly":0.05,"ImLiam\\BladeHelper\\Tests\\Unit\\BladeHelperTest::custom_unnamed_helpers_compile_correctly":0,"ImLiam\\BladeHelper\\Tests\\Unit\\BladeHelperTest::custom_helpers_without_echo_compile_correctly":0.001,"ImLiam\\BladeHelper\\Tests\\Unit\\BladeHelperTest::custom_helper_callbacks_compile_correctly":0,"ImLiam\\BladeHelper\\Tests\\Unit\\BladeHelperTest::custom_if_helpers_can_be_registered":0.001}}
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# Laravel Blade Helper

[![Latest Version on Packagist](https://img.shields.io/packagist/v/imliam/laravel-blade-helper.svg)](https://packagist.org/packages/imliam/laravel-blade-helper)
[![Build Status](https://img.shields.io/travis/imliam/laravel-blade-helper.svg)](https://travis-ci.org/imliam/laravel-blade-helper)
[![CI Status](https://github.com/imliam/laravel-blade-helper/workflows/Run%20Tests/badge.svg)](https://github.com/imliam/laravel-blade-helper/actions)
[![Total Downloads](https://img.shields.io/packagist/dt/imliam/laravel-blade-helper.svg)](https://packagist.org/packages/imliam/laravel-blade-helper)
[![License](https://img.shields.io/github/license/imliam/laravel-blade-helper.svg)](LICENSE.md)

Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
}
],
"require": {
"php": "^7.3|^8.0",
"illuminate/support": "^7.0|^8.0|^9.0|^10.0"
"php": "^8.0",
"illuminate/support": "^11.0|^12.0"
},
"require-dev": {
"phpunit/phpunit": "^7.0|^8.0|^9.0",
"phpunit/phpunit": "^11.0",
"larapack/dd": "^1.0",
"orchestra/testbench": "^5.0|^6.0|^7.0|^8.0",
"orchestra/testbench": "^9.0|^10.0",
"mockery/mockery": "^1.0"
},
"autoload": {
Expand Down