mirror of
https://github.com/rlanvin/php-rrule.git
synced 2025-02-26 15:54:14 +01:00
Replace TravisCI by Github Actions
This commit is contained in:
parent
228268803f
commit
3036bf3df8
39
.github/workflows/tests.yml
vendored
Normal file
39
.github/workflows/tests.yml
vendored
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
name: Tests
|
||||||
|
|
||||||
|
on: push
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
run:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
php: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4']
|
||||||
|
name: PHP ${{ matrix.php }}
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Install PHP
|
||||||
|
uses: shivammathur/setup-php@v2
|
||||||
|
with:
|
||||||
|
php-version: ${{ matrix.php }}
|
||||||
|
extensions: intl
|
||||||
|
|
||||||
|
- name: Cache Composer packages
|
||||||
|
id: composer-cache
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: vendor
|
||||||
|
key: ${{ matrix.php }}-composer
|
||||||
|
|
||||||
|
- name: Composer install
|
||||||
|
if: steps.composer-cache.outputs.cache-hit != 'true'
|
||||||
|
run: composer install -n
|
||||||
|
|
||||||
|
- name: Display versions
|
||||||
|
run: |
|
||||||
|
php -v
|
||||||
|
php -i
|
||||||
|
vendor/bin/phpunit -v
|
||||||
|
|
||||||
|
- run: vendor/bin/phpunit
|
12
.travis.yml
12
.travis.yml
@ -1,12 +0,0 @@
|
|||||||
language: php
|
|
||||||
php:
|
|
||||||
- 5.6
|
|
||||||
- 7.0
|
|
||||||
- 7.1
|
|
||||||
- 7.2
|
|
||||||
- 7.3
|
|
||||||
- 7.4
|
|
||||||
install:
|
|
||||||
- composer install -n
|
|
||||||
script:
|
|
||||||
- vendor/bin/phpunit
|
|
@ -3,7 +3,7 @@
|
|||||||
Lightweight and fast implementation of recurrence rules for PHP (`RRULE` from RFC 5545), to easily calculate recurring/repeating dates and events (such as in a calendar).
|
Lightweight and fast implementation of recurrence rules for PHP (`RRULE` from RFC 5545), to easily calculate recurring/repeating dates and events (such as in a calendar).
|
||||||
This library started as a port of [python-dateutil](https://labix.org/python-dateutil).
|
This library started as a port of [python-dateutil](https://labix.org/python-dateutil).
|
||||||
|
|
||||||
[](https://travis-ci.org/rlanvin/php-rrule)
|
[](https://github.com/rlanvin/php-rrule/actions)
|
||||||
[](https://packagist.org/packages/rlanvin/php-rrule)
|
[](https://packagist.org/packages/rlanvin/php-rrule)
|
||||||
[](https://packagist.org/packages/rlanvin/php-rrule)
|
[](https://packagist.org/packages/rlanvin/php-rrule)
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit": "^4.8|^5.5|^6.5",
|
"phpunit/phpunit": "^5.7|^6.5",
|
||||||
"phpmd/phpmd" : "@stable"
|
"phpmd/phpmd" : "@stable"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user