mirror of
https://github.com/andres-montanez/Magallanes
synced 2024-05-03 22:43:15 +02:00
61 lines
1.4 KiB
YAML
61 lines
1.4 KiB
YAML
|
name: PHPUnit
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- master
|
||
|
- galactica
|
||
|
pull_request:
|
||
|
release:
|
||
|
types:
|
||
|
- created
|
||
|
|
||
|
jobs:
|
||
|
unit_tests_80:
|
||
|
name: Unit tests with PHP 8.0
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- name: Checkout
|
||
|
uses: actions/checkout@v2
|
||
|
with:
|
||
|
fetch-depth: 0
|
||
|
- name: Composer install
|
||
|
uses: php-actions/composer@v5
|
||
|
with:
|
||
|
command: install
|
||
|
args: --ignore-platform-reqs --no-scripts
|
||
|
version: 2
|
||
|
php_version: 8.0
|
||
|
- name: Run tests
|
||
|
env:
|
||
|
XDEBUG_MODE: coverage
|
||
|
run: ./vendor/bin/phpunit --testsuite=unit
|
||
|
- name: Run Coveralls
|
||
|
env:
|
||
|
XDEBUG_MODE: coverage
|
||
|
run: ./vendor/bin/php-coveralls -v --coverage_clover build/logs/coverage.xml
|
||
|
|
||
|
unit_tests_81:
|
||
|
name: Unit tests with PHP 8.1
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- name: Checkout
|
||
|
uses: actions/checkout@v2
|
||
|
with:
|
||
|
fetch-depth: 0
|
||
|
- name: Composer install
|
||
|
uses: php-actions/composer@v5
|
||
|
with:
|
||
|
command: install
|
||
|
args: --ignore-platform-reqs --no-scripts
|
||
|
version: 2
|
||
|
php_version: 8.1
|
||
|
- name: Run tests
|
||
|
env:
|
||
|
XDEBUG_MODE: coverage
|
||
|
run: ./vendor/bin/phpunit --testsuite=unit
|
||
|
- name: Run Coveralls
|
||
|
env:
|
||
|
XDEBUG_MODE: coverage
|
||
|
run: ./vendor/bin/php-coveralls -v --coverage_clover build/logs/coverage.xml
|