Skip to content

Commit

Permalink
Replace TravisCI by Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
rlanvin committed Dec 9, 2020
1 parent 2282688 commit 3036bf3
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 14 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -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 changes: 0 additions & 12 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
}
},
"require-dev": {
"phpunit/phpunit": "^4.8|^5.5|^6.5",
"phpunit/phpunit": "^5.7|^6.5",
"phpmd/phpmd" : "@stable"
}
}

0 comments on commit 3036bf3

Please sign in to comment.