mirror of
https://github.com/rlanvin/php-rrule.git
synced 2024-11-28 05:24:10 +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).
|
||||
This library started as a port of [python-dateutil](https://labix.org/python-dateutil).
|
||||
|
||||
[![Build Status](https://travis-ci.org/rlanvin/php-rrule.svg?branch=master)](https://travis-ci.org/rlanvin/php-rrule)
|
||||
[![Build status](https://github.com/rlanvin/php-rrule/workflows/Tests/badge.svg)](https://github.com/rlanvin/php-rrule/actions)
|
||||
[![Latest Stable Version](https://poser.pugx.org/rlanvin/php-rrule/v/stable)](https://packagist.org/packages/rlanvin/php-rrule)
|
||||
[![Total Downloads](https://poser.pugx.org/rlanvin/php-rrule/downloads)](https://packagist.org/packages/rlanvin/php-rrule)
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
}
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^4.8|^5.5|^6.5",
|
||||
"phpunit/phpunit": "^5.7|^6.5",
|
||||
"phpmd/phpmd" : "@stable"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user