Merge pull request #11 from MarcinOrlowski/dev #31
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################## | |
# | |
# Lombok PHP - Write less code! | |
# | |
# @author Marcin Orlowski <mail (#) marcinOrlowski (.) com> | |
# @copyright 2022 Marcin Orlowski | |
# @license https://opensource.org/licenses/LGPL-3.0 LGPL-3.0 | |
# @link https://github.com/MarcinOrlowski/lombok-php | |
# | |
################################################################################## | |
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 | |
php: [ "8.0", "8.1", "8.2" ] | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout repository..." | |
uses: actions/checkout@v2 | |
# 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 | |
# https://github.com/marketplace/actions/phpunit-php-actions | |
- name: "Running PHPUnit..." | |
uses: php-actions/phpunit@v3 | |
with: | |
bootstrap: "vendor/autoload.php" | |
configuration: "phpunit.xml.dist" |