mirror of
https://github.com/holidayapi/holidayapi-php.git
synced 2025-06-21 04:16:31 +00:00
Added the ability to get the previous workday by passing in a negative number of days along with the date to start from. This update also includes some overhauling to allow for the library to be more resilient to changes in the upstream API.
29 lines
863 B
YAML
29 lines
863 B
YAML
name: Test
|
|
on: [push, pull_request]
|
|
jobs:
|
|
test:
|
|
name: Test PHP ${{ matrix.php-version }}
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
php-version: ['5.3', '5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1']
|
|
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.1' }}
|
|
uses: codecov/codecov-action@v1
|
|
with:
|
|
file: ./coverage.xml
|