Skip to content

Updated compatibility log #161

Updated compatibility log

Updated compatibility log #161

Workflow file for this run

##################################################################################
#
# Laravel API Response Builder Unit tests Github Action config
#
# @author Marcin Orlowski <mail (#) marcinOrlowski (.) com>
# @copyright 2016-2023 Marcin Orlowski
# @license http://www.opensource.org/licenses/mit-license.php MIT
# @link https://github.com/MarcinOrlowski/laravel-api-response-builder
#
##################################################################################
name: "Unit Tests"
on:
push:
branches:
- "master"
pull_request:
branches:
- "master"
- "dev"
jobs:
tests:
strategy:
# do not stop the workflow if single run failed
fail-fast: false
matrix:
# quotes are needed it is treated as a number and zero at decimal part is gone
# at runtime i.e. 8.10 -> 8.1, while "8.10" => "8.10".
laravel: ["11.0"]
php: ["8.2"]
runs-on: ubuntu-latest
steps:
- name: "Checkout repository..."
uses: actions/checkout@v4
# https://github.com/marketplace/actions/composer-php-actions
- name: "Installing dependencies..."
uses: php-actions/composer@v6
with:
version: 2
php_version: "${{ matrix.php }}"
dev: yes
- name: "Running PHPUnit..."
shell: bash
run: |
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
/usr/local/bin/composer install --no-interaction
/usr/local/bin/composer test