mirror of
https://github.com/holidayapi/holidayapi-php.git
synced 2025-06-21 04:16:31 +00:00
Seemed overdue to finally drop support for PHP 5.x, as well as 7.x as the 7 series has also reached end of life. Expanded testing to include both the soon to be released 8.3 and the next development version 8.4.
29 lines
821 B
YAML
29 lines
821 B
YAML
name: Test
|
|
on: [push, pull_request]
|
|
jobs:
|
|
test:
|
|
name: Test PHP ${{ matrix.php-version }}
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
php-version: ['8.0', '8.1', '8.2', '8.3', '8.4']
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
- name: Setup PHP
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: ${{ matrix.php-version }}
|
|
- name: PHP Version
|
|
run: php --version
|
|
- name: Composer Version
|
|
run: composer --version
|
|
- name: Install Dependencies
|
|
run: COMPOSER_MEMORY_LIMIT=-1 composer install
|
|
- name: Run Tests
|
|
run: vendor/bin/phpunit --coverage-clover ./coverage.xml
|
|
- name: Upload Coverage
|
|
if: ${{ matrix.php-version == '8.2' }}
|
|
uses: codecov/codecov-action@v1
|
|
with:
|
|
file: ./coverage.xml
|